We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
This should return 0x61, but instead fails saying it needs a numeric type instead of a character type.
0x61
fmt::format("0x{0:02X}", 'a'); // Crashes
This, however, succeeds:
fmt::format("0x{0:02X}\n", (int)'a'); // Returns 0x61
Since char is technically an integral type, I think you are right and this should be supported. Thanks for reporting!
char
Hack to get `char` and `byte` to play well
byte
Activity
vitaut commentedon Jul 21, 2014
Since
char
is technically an integral type, I think you are right and this should be supported. Thanks for reporting!Hack to get `char` and `byte` to play well
char
andbyte
to play well #56