STL icon indicating copy to clipboard operation
STL copied to clipboard

<format>:How do I specialize the std::formatter with module

Open eiytoq opened this issue 2 years ago • 1 comments

How should I specialize the std::formatter for a type with template parameters within a module? An example: reiteration.zip When I use this, it fails, but I try moving the std::formatter specialization to main.cpp, it succeeds.

eiytoq avatar Jul 24 '24 20:07 eiytoq

Thanks for reporting this bug. Your test case is equivalent to DevCom-10506520 "Partial specialization of std::formatter in module is not found in other module.", which was a compiler bug that was recently fixed. The fix will be available in VS 2022 17.12 Preview 2.

StephanTLavavej avatar Jul 24 '24 21:07 StephanTLavavej