-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
LEWG issue neededA design defect that should be submitted to LEWG as a new issueA design defect that should be submitted to LEWG as a new issuebugSomething isn't workingSomething isn't workingfixedSomething works now, yay!Something works now, yay!formatC++20/23 formatC++20/23 format
Description
#include <format>
int main()
{
volatile int vol = 42;
auto ret = std::format("{}", vol);
}error C2668: 'std::_Format_arg_traits<_Context>::_Phony_basic_format_arg_constructor': ambiguous call to overloaded function
The same code compiles fine with {fmt}.
MSVS 17.0.4
Update:
It's rather volatile integral types fail to compile, because volatile double and float compile fine.
Metadata
Metadata
Assignees
Labels
LEWG issue neededA design defect that should be submitted to LEWG as a new issueA design defect that should be submitted to LEWG as a new issuebugSomething isn't workingSomething isn't workingfixedSomething works now, yay!Something works now, yay!formatC++20/23 formatC++20/23 format