We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since std::literals allows for std::complex literals, it seems natural that fmt would support them.
#include <complex> #include "fmt/format.h" int main() { using namespace std::literals; auto i1 = 1.0i; auto i2 = 2.0if; auto i3 = 3.0il; auto s = fmt::format( "{} {} {}", i1, i2, i3 ); //< missing formatters for complex numbers assert( "1.0i 2.0i 3.0i" == s ); }
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. A PR to add a formatter for complex to fmt/std.h would be welcome.
fmt/std.h
Sorry, something went wrong.
No branches or pull requests
Since std::literals allows for std::complex literals, it seems natural that fmt would support them.
The text was updated successfully, but these errors were encountered: