-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Visual Studio 22 (17.2.3) + Module compilation results in ambiguous format_to call #2920
Comments
Please post the complete error message. |
added error message |
Looks like a bug in MSVC: |
Does this issue not reduce down to this since the base class of |
buffer_appender<char>(out) I think this is actually a Line 1448 in 9d60395
Line 955 in 9d60395
|
Ah, good catch. In that case we should namespace qualify the call to format_to, i.e. change it to |
Setup
cmake -DCMAKE_CXX_STANDARD=20 -DFMT_MODULE=ON
Bug
The
format_to
call inos.cc
functionformat_windows_error
becomes ambiguous.fmt/src/os.cc
Line 172 in 9d60395
Possible Explanation
fmt.cc
includes<chrono>
which pulls in<format>
. Which turns this https://en.cppreference.com/w/cpp/utility/format/format_to into a valid candidate and makes the call ambiguous.The text was updated successfully, but these errors were encountered: