Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix formatting primitive types such as integers#1231

Merged
kennykerr merged 1 commit intomicrosoft:mastermicrosoft/cppwinrt:masterfrom
sylveon:user/sylveon/int-winrt-formatsylveon/cppwinrt:user/sylveon/int-winrt-formatCopy head branch name to clipboard
Nov 21, 2022
Merged

Fix formatting primitive types such as integers#1231
kennykerr merged 1 commit intomicrosoft:mastermicrosoft/cppwinrt:masterfrom
sylveon:user/sylveon/int-winrt-formatsylveon/cppwinrt:user/sylveon/int-winrt-formatCopy head branch name to clipboard

Conversation

@sylveon
Copy link
Contributor

@sylveon sylveon commented Nov 20, 2022

With std::format reference semantics are only used for user defined types so without std::forward you somehow can't format integers. Forwarding twice is safe because objects are not copied/moved from during formatting.

Would like a quick release of this fix because it's breaking my scenario.

@kennykerr kennykerr merged commit 96bfd16 into microsoft:master Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.