fmt icon indicating copy to clipboard operation
fmt copied to clipboard

A modern formatting library

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

Getting this error while compiling with LLVM clang++.exe on Windows, the exceptions are disabled `-fno-exceptions` and `-fms-compatibility` is not used: ``` fmt/include\fmt/format-inl.h:1417:3: error: cannot use 'try' with exceptions disabled 1417...

I'm new to c++, apology if this is not a good issue. I'm coming from https://github.com/fmtlib/fmt/issues/1771 , but I'm using a `vector` as memory buffer. And `fmt::format_to(std::back_inserter(out), FMT_COMPILE("{}"), val)` works...

The following example ([Compiler Explorer link](https://godbolt.org/z/os5cWdjKT)), taken mostly unaltered from the docs ```cpp #include #include enum class color {red, green, blue}; template struct fmt::formatter: formatter { // parse is inherited...

Formatting for exceptions exists (e.g. via https://github.com/fmtlib/fmt/pull/3062 or https://github.com/fmtlib/fmt/pull/3076). This is not documented (missing in the list at https://github.com/fmtlib/fmt/blob/cc2ba8f9ede4e5ae3262f43f3e4d07a22a9acdfc/doc/api.md#L491-L505). Additionally, there seem to be different ways to format exceptions (without...

The compiler is failing to find an appropriate overload for the `fmt::join` function that works with `std::vector` or other `std::vector`. Environment: 1. MSVC 17.0 2. CMake 3.30.2 3. ninja 1.11.1...

help wanted

The container support in fmt/ranges.h is extremely powerful, but I often forget that it exists. Could we have a specific error message in the event that we encounter an unformattable...

enhancement

```cxx #include #include #include #include "fmt/ostream.h" #include "fmt/std.h" namespace fs = std::filesystem; int main() { const fs::path from{"/none1/a"}, to{"/none2/b"}; try { fs::copy_file(from, to); } catch (fs::filesystem_error const &ex) { std::cout

Not sure if you want to do something about this. https://godbolt.org/#z:OYLghAFBqd5QCxAYwPYBMCmBRdBLAF1QCcAaPECAMzwBtMA7AQwFtMQByARg9KtQYEAysib0QXACx8BBAKoBnTAAUAHpwAMvAFYTStJg1DIApACYAQuYukl9ZATwDKjdAGFUtAK4sGe1wAyeAyYAHI%2BAEaYxCAAzKQADqgKhE4MHt6%2BekkpjgJBIeEsUTHxdpgOaUIETMQEGT5%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ByKI%2BhiFCVg1jhhGkZRtGcY6rridITB8CIea9H4HLRHEArXaKlR1EUsrSBStyEn8iGOAPUg5cQzghIhbXPlQKhYfhxHkdR9HMexiAPAow3CaBknMIWSnqf6Ja9wF3g/PArGjWAgDJC4X1w1iSD4kj09OEV9DSbfUh6cZ5nWfFyQuZ5vny9iKH5c75WydDswp6j5DZ97wKUmcSQgA%3D%3D Gives back: ``` In file included from /opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:41, from :1: In constructor 'constexpr fmt::v11::detail::named_arg_store::named_arg_store(T& ...) [with T = {fmt::v11::detail::named_arg,...

Minimal repro: Building with: * clang 19.1.7. Also reproduces with gcc 14.2.1 * ninja 1.12.1 * cmake 3.31.6 Minimal cmake project to reproduce: [proj.zip](https://github.com/user-attachments/files/19166317/proj.zip) Files inside (just in case): CMakeLists.txt:...

I've seen loads of different examples online, but nothing seems to be in the official documents. Some people have suggested to wrap fmt in a module and include that, while...