Closed sergiud closed 3 months ago
Should be fixed in https://github.com/fmtlib/fmt/commit/6e462b89aa22fd5f737ed162d0150e145ccb1914.
I just cloned and tried to compile in Windows 11, with Visual Studio Community 2022 17.11.2, and I have the same errors.
@vitaut I also encountered this issue with building the latest commit b52fb98 on Windows with VS17.11.2. Error info as follows:
"C:\gitP\fmtlib\fmt\build_amd64\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\gitP\fmtlib\fmt\build_amd64\test\chrono-test.vcxproj" (default target) (16) ->
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.41.34120\include\xutility(1187,54): error C2794: 'reference': is not a member of any direct or indirect base class of 'std::iterator_traits<fmt::v11::appender>' [C:\gitP\fmtlib\fmt\build_amd64\test\chrono-test.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.41.34120\include\xutility(4546,73): error C2938: 'std::_Iter_ref_t' : Failed to specialize alias template [C:\gitP\fmtlib\fmt\build_amd64\test\chrono-test.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.41.34120\include\xutility(4546,40): error C2062: type 'unknown-type' unexpected [C:\gitP\fmtlib\fmt\build_amd64\test\chrono-test.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.41.34120\include\xutility(4607,29): error C3376: 'std::_Iterator_is_volatile': only static data member templates are allowed [C:\gitP\fmtlib\fmt\build_amd64\test\chrono-test.vcxproj]
Please provide a godbolt repro similar to the one above.
Please provide a godbolt repro similar to the one above.
I tried to extract all the source files used, you can follow the steps below to reproduce. Repro steps:
@vitaut I'm also getting the same issue, here's the godbolt repro https://www.godbolt.org/z/obfW8TWPG
Thanks for the repro. Fixed in https://github.com/fmtlib/fmt/commit/50aac2ac92cd3defe2429110717a35f345691a36.
With fmt 11.0.2 I'm seeing the following compiler error in
color-test.cc
that is seemingly caused by this checkhttps://github.com/fmtlib/fmt/blob/0c9fce2ffefecfdce794e1859584e25877b7b592/test/color-test.cc#L53-L55
I cannot provide a reproducer on Goldbolt since its MSVC installation cannot currently find the fmt includes.