fmt
fmt copied to clipboard
A modern formatting library
Issue #4007 Only enabled for clang >= 14 as that's all that supports `_BitInt` at the moment We need a forwarding reference for `map` to be a "more specialized" match;...
With clang, formatting `year_month_day` only compiles in Compiler Explorer on trunk. 18.1.0 and earlier do not compile. If I switch to `-stdlib=libc++`, it doesn't compile on trunk either. With GCC,...
at least MSC caused warning C4702: unreachable code
Follows the same rationale as commit 6e462b8 to replace `std::copy` usage with the library `detail::copy`. Without this, latest MSVC versions will fail to compile when using chrono types. Compile result...
Compiler is gcc 8.3.1 Can reproduce on godbolt with this code: ``` #include "fmt/format.h" int main() { char buffer[4]; auto result = fmt::format_to(buffer, "{}", 12345); } ``` Output on godbolt:...
Fixes issue #4129
`std::filesystem::path` seems to give a compile error for `fmt::printf()` but not for `fmt::print()`: [godbolt](https://godbolt.org/z/dnh75qGsT) ```c++ #include #include #include void f(){ std::filesystem::path p; fmt::print("{}", p); // compiles fmt::printf("%s", p); // doesn't...
``` println( "{}{}{}", 1, 2, 3 ); // valid println( "{}", std::tuple(1, 'b', 1.0/3.0) ); // valid println( "{.2f}", std::tuple(1, 'b', 1.0/3.0) ); // error // what I'd like and...
FMT_INLINE works differently than using `__attribute__((always_inline))` directly. ## Reproduce cmake: cmake -DCMAKE_CXX_STANDARD=20 -DCMAKE_BUILD_TYPE=Release .. gcc: c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 ``` int main() { auto res = fmt::format(FMT_COMPILE("{} {} {}"), 1,...
I've opened this GCC bug for the case where FMT_SYSTEM_HEADERS workaround doesn't work. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116515 It appears when using LTO the warnings happen at link system and GCC doesn't respect isystem...