fmt icon indicating copy to clipboard operation
fmt copied to clipboard

A modern formatting library

Results 66 fmt issues
Sort by recently updated
recently updated
newest added

Hello, I am using `dragonbox::to_chars` as my float pointer number to string method, and trying to replace dragonbox with lib fmt 10.x since it has already integrated with dragonbox and...

```c++ #include #include #include #include #include struct x {}; template struct fmt::formatter : fmt::formatter { auto format(const std::pair& p, auto& ctx) const { return fmt::format_to(ctx.out(), "x/x"); } }; int main()...

fmt 9 added support for `fmt::to_string(__float128)` but no formatter yet as far as I know. I've tried to make my own like below, but this failed: ```cpp #include #include template...

enhancement

Addresses issue (#3802) Following from the issue discussion, adding 2 std::moves gets this error: ``` In file included from /home/justin/code/fmt/test/ranges-test.cc:8: /home/justin/code/fmt/include/fmt/ranges.h:597:10: error: call to deleted constructor of 'std::ranges::basic_istream_view::__iterator' 597 |...

My use case is migrating a Qt codebase to more-standard C++, so I have a mix of `QString` (UTF-16) and `std::string`. I'd like to specialize a formatter that lets me...

In `ru_RU.UTF-8` locale, there's a possibility to specify alternative month format. For example, specifying `%B` format, `strftime` will output this (providing that said locale is in charge): `марта`. It works...

enhancement

When changing the `struct Point` example explaining `nested_formatter`-usage in the API reference to use dynamic precision, execution fails with an error ``` Execution build compiler returned: 0 Program returned: 139...

Fixes issue #3839 An Eigen 3.4 2x2 matrix has a begin member function that returns void and a static_assert that evaluates to false (as you're not meant to call begin...

The `FMT_USE_TYPEID` macro was renamed to `FMT_HAS_RTTI` and moved to `fmt/base.h` so that it can be used in other parts of the library. That is now used to check wheter...

#3959 suggests that format_as should be supported with just fmt/core.h. I have hit a very surprising behavior where format_as returning a non-arithmetic type is completely broken unless including fmt/format.h: https://godbolt.org/z/344bznojf....