Closed dmyger closed 2 weeks ago
Try adding a header:
#include <fmt/std.h>
As @phprus already mentioned above you need to include fmt/std.h
. Among other things, this header provides a formatter for the proxy type used by vector<bool>
. More generally, for a range to be formattable its elements also have to be formattable.
#include <fmt/std.h>
Thank you. It's helps.
It would be great to have something similar in your test cases. While I see that in std-test.cc
only by elements is tested, not the whole container.
MacOS AppleClang++ 15; LLVM Clang++ 18 Conan v2
Can't compile following code with latest 10.2.1 version of library. While with 9.1.0 - it works as expected.
Compile errors
``` [build] Starting build [proc] Executing command: /usr/local/bin/cmake --build src/test/Clang=Debug --config Debug --target tst_fmt -- [build] [1/2 50% :: 1.853] Building CXX object CMakeFiles/tst_fmt.dir/tst_fmt.cpp.o [build] FAILED: CMakeFiles/tst_fmt.dir/tst_fmt.cpp.o [build] /usr/bin/clang++ -DFMT_HEADER_ONLY=1 -isystem .conan2/p/fmt973b15748dcf1/p/include -g -std=gnu++20 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk -Wall -MD -MT CMakeFiles/tst_fmt.dir/tst_fmt.cpp.o -MF CMakeFiles/tst_fmt.dir/tst_fmt.cpp.o.d -o CMakeFiles/tst_fmt.dir/tst_fmt.cpp.o -c src/test/tst_fmt.cpp [build] In file included from src/test/tst_fmt.cpp:3: [build] .conan2/p/fmt973b15748dcf1/p/include/fmt/core.h:2593:45: error: implicit instantiation of undefined template 'fmt::detail::type_is_unformattable_for