This should return `0x61`, but instead fails saying it needs a numeric type instead of a character type. ``` C++ fmt::format("0x{0:02X}", 'a'); // Crashes ``` This, however, succeeds: ``` C++ fmt::format("0x{0:02X}\n", (int)'a'); // Returns 0x61 ```
Activity
vitaut commentedon Jul 21, 2014
Since
charis 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