fmt
fmt copied to clipboard
A modern formatting library
``` ld: warning: direct access in function 'fmt::v10::detail::format_error_code(fmt::v10::detail::buffer&, int, fmt::v10::basic_string_view)' from file '/usr/local/vcpkg/installed/x64-osx/lib/libfmt.a(format.cc.o)' to global weak symbol 'decltype(fp.begin()) fmt::v10::detail::parse_format_specs(fmt::v10::detail::compile_parse_context&)' from file '/usr/local/vcpkg/installed/x64-osx/lib/libspdlog.a(spdlog.cpp.o)' means the weak symbol cannot be overridden at...
Add ::value to is_formattable as per suggestion by @vitaut in https://github.com/fmtlib/fmt/issues/3854
If I compile ``` #include int main() { } ``` with g++ 14.0.1, with -std=c++20, all is well. If I use -std=c++23, I see ``` In file included from fmtbug.cc:1:...
Allow for compile target for WASM Emscripten. Thanks FMT is wicked !
As far as I understand, the default formatting option should produce the shortest output, *not* just in the number of significand digits, *but also* in the number of actual characters....
Eigen 3.4 seems to have a significant change in behavior where `begin()` exists for all matrices, but returns `void` for non 1-D matrices where iteration is not well defined. This...
Printing with MSVC does not work properly using the Timezone. When running this example with MSVC fmt::print("Got now as {:%FT%T%z}\n", std::chrono::time_point::clock::now()); I get the output: Got now as 2024-01-18T07:09:51.3559309+0100 The...
C++20 allows iterators for input ranges to be move-only, for example `std::ranges::basic_istream_view::iterator`. Unfortunately `fmt::join_view` copies iterators in various places, meaning it can't be used with such ranges: ```cpp int main()...
{fmt} doesn't support printing green day at the moment: ```c++ #include #include int main() { fmt::print(fg(fmt::color::green), "{}", std::chrono::day()); } ``` Error: ``` include/fmt/core.h:1594:63: error: implicit instantiation of undefined template 'fmt::detail::type_is_unformattable_for'...
# Reproduction [Godbolt link](https://godbolt.org/z/nb4cYdrTr) # Summary A `format_as` definition that returns a `std::views::filter_view`, like so: ```cpp auto format_as(CodecMask m) { return CodecMask::k_codecs | std::views::filter([&](auto c) { return m.has(c); }); }...