Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use named args with locale #3226

Closed
AneekCN opened this issue Dec 13, 2022 · 1 comment
Closed

Unable to use named args with locale #3226

AneekCN opened this issue Dec 13, 2022 · 1 comment

Comments

@AneekCN
Copy link

AneekCN commented Dec 13, 2022

When formatting with locale, unable to compile with named args. only tested with msvc

fmt::format( locale, "{:Lf}", val ); // okay
fmt::format( locale, "{val:Lf}", fmt::arg( "val", val ) ); // fails to compile, "error C2668: 'fmt::v8::vformat': ambiguous call to overloaded function"

https://godbolt.org/z/rY7os6EvT

@vitaut
Copy link
Contributor

vitaut commented Dec 15, 2022

Fixed in b908954. Thanks for reporting.

@vitaut vitaut closed this as completed Dec 15, 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

No branches or pull requests

2 participants