<stdfloat>
Author: spinicistCreated Mar 31, 2026Updated May 14, 2026
Godbolt example: https://godbolt.org/z/rhd7vvT79
I'm having difficult with the types in , i.e. std::float16_t and std::float32_t. std::print can print a std::float16_t, but fmt::print cannot. Neither std::print or fmt::print can print a std::complex<std::float16_t>.
What is needed to format/print a std::complex<std::float16_t>? Is this something I can add a formatter for in my own code?
Thanks.
Source: fmtlib/fmt