1>------ Build started: Project: repro, Configuration: Debug x64 ------ 1>repro.cpp 1>C:\tmp\repro\fmt\xchar.h(271,41): error C2672: 'fmt::v10::make_wformat_args': no matching overloaded function found 1>(compiling source file 'repro.cpp') 1> C:\tmp\repro\fmt\xchar.h(89,16): 1> could be 'unknown-type fmt::v10::make_wformat_args(T ...)' 1> C:\tmp\repro\fmt\xchar.h(271,41): 1> Failed to specialize function template 'unknown-type fmt::v10::make_wformat_args(T ...)' 1> C:\tmp\repro\fmt\xchar.h(271,41): 1> With the following template arguments: 1> C:\tmp\repro\fmt\xchar.h(271,41): 1> 'T={std::wstring}' 1> C:\tmp\repro\fmt\xchar.h(90,17): 1> 'std::make_format_args': ambiguous call to overloaded function 1> C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33617\include\format(3732,17): 1> could be 'auto std::make_format_args(std::wstring &)' [found using argument-dependent lookup] 1> C:\tmp\repro\fmt\base.h(2003,34): 1> or 'fmt::v10::detail::format_arg_store fmt::v10::make_format_args(std::wstring &)' 1> C:\tmp\repro\fmt\xchar.h(90,17): 1> while trying to match the argument list '(std::wstring)' 1> C:\tmp\repro\fmt\xchar.h(271,41): 1> the template instantiation context (the oldest one first) is 1> C:\tmp\repro\repro.cpp(9,8): 1> see reference to function template instantiation 'void fmt::v10::println<>(fmt::v10::basic_format_string)' being compiled 1> C:\tmp\repro\fmt\xchar.h(280,10): 1> see reference to function template instantiation 'void fmt::v10::print(fmt::v10::basic_format_string,std::allocator>>,std::wstring &&)' being compiled 1>C:\tmp\repro\fmt\xchar.h(271,10): error C2661: 'fmt::v10::vprint': no overloaded function takes 1 arguments 1>(compiling source file 'repro.cpp') 1> C:\tmp\repro\fmt\ostream.h(163,6): 1> could be 'void fmt::v10::vprint(std::basic_ostream<_CharT,std::char_traits<_Elem>> &,fmt::v10::basic_string_view::type>,detail::vformat_args::type)' 1> C:\tmp\repro\fmt\xchar.h(271,10): 1> 'void fmt::v10::vprint(std::basic_ostream<_CharT,std::char_traits<_Elem>> &,fmt::v10::basic_string_view::type>,detail::vformat_args::type)': expects 3 arguments - 1 provided 1> C:\tmp\repro\fmt\xchar.h(271,10): 1> while trying to match the argument list '(fmt::v10::wstring_view)' 1>C:\tmp\repro\fmt\xchar.h(139,47): error C2672: 'fmt::v10::make_wformat_args': no matching overloaded function found 1>(compiling source file 'repro.cpp') 1> C:\tmp\repro\fmt\xchar.h(89,16): 1> could be 'unknown-type fmt::v10::make_wformat_args(T ...)' 1> C:\tmp\repro\fmt\xchar.h(139,47): 1> Failed to specialize function template 'unknown-type fmt::v10::make_wformat_args(T ...)' 1> C:\tmp\repro\fmt\xchar.h(139,47): 1> With the following template arguments: 1> C:\tmp\repro\fmt\xchar.h(139,47): 1> 'T={_Ty}' 1> C:\tmp\repro\fmt\xchar.h(90,17): 1> 'std::make_format_args': ambiguous call to overloaded function 1> C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.40.33617\include\format(3732,17): 1> could be 'auto std::make_format_args(std::wstring &)' [found using argument-dependent lookup] 1> C:\tmp\repro\fmt\base.h(2003,34): 1> or 'fmt::v10::detail::format_arg_store fmt::v10::make_format_args(std::wstring &)' 1> C:\tmp\repro\fmt\xchar.h(90,17): 1> while trying to match the argument list '(_Ty)' 1> with 1> [ 1> _Ty=std::wstring 1> ] 1> C:\tmp\repro\fmt\xchar.h(139,47): 1> the template instantiation context (the oldest one first) is 1> C:\tmp\repro\repro.cpp(11,8): 1> see reference to function template instantiation 'void fmt::v10::println(fmt::v10::basic_format_string,std::allocator>>,std::wstring &&)' being compiled 1> C:\tmp\repro\fmt\xchar.h(280,30): 1> see reference to function template instantiation 'std::wstring fmt::v10::format<_Ty>(fmt::v10::basic_format_string,std::allocator>>,_Ty &&)' being compiled 1> with 1> [ 1> _Ty=std::wstring 1> ] 1>C:\tmp\repro\fmt\xchar.h(139,10): error C2661: 'fmt::v10::vformat': no overloaded function takes 1 arguments 1>(compiling source file 'repro.cpp') 1> C:\tmp\repro\fmt\xchar.h(157,13): 1> could be 'std::basic_string,std::allocator> fmt::v10::vformat(const Locale &,const S &,detail::vformat_args::type)' 1> C:\tmp\repro\fmt\xchar.h(139,10): 1> 'std::basic_string,std::allocator> fmt::v10::vformat(const Locale &,const S &,detail::vformat_args::type)': expects 3 arguments - 1 provided 1> C:\tmp\repro\fmt\xchar.h(129,6): 1> or 'std::basic_string<_Elem,std::char_traits<_Elem>,std::allocator<_Ty>> fmt::v10::vformat(fmt::v10::basic_string_view,detail::vformat_args::type)' 1> C:\tmp\repro\fmt\xchar.h(139,10): 1> 'std::basic_string<_Elem,std::char_traits<_Elem>,std::allocator<_Ty>> fmt::v10::vformat(fmt::v10::basic_string_view,detail::vformat_args::type)': expects 2 arguments - 1 provided 1> C:\tmp\repro\fmt\format.h(4370,13): 1> or 'std::string fmt::v10::vformat(const Locale &,fmt::v10::string_view,fmt::v10::format_args)' 1> C:\tmp\repro\fmt\xchar.h(139,10): 1> 'std::string fmt::v10::vformat(const Locale &,fmt::v10::string_view,fmt::v10::format_args)': expects 3 arguments - 1 provided 1> C:\tmp\repro\fmt\xchar.h(139,10): 1> while trying to match the argument list '(fmt::v10::wstring_view)' 1>Done building project "repro.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========