can abseil-cpp support AbslStringify for char/unsigned char? #1576
Answered
by
derekmauro
chenchuanyin
asked this question in
Q&A
-
When I AbslStringify for type char, but the output of absl::HasAbslStringify::value is false, is it by design? template |
Beta Was this translation helpful? Give feedback.
Answered by
derekmauro
Nov 25, 2023
Replies: 1 comment 2 replies
-
This is by design because it is potentially error-prone. Sometimes the user may want to print that char, and sometimes the user may want to print the integer value (consider the type alias
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
derekmauro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is by design because it is potentially error-prone. Sometimes the user may want to print that char, and sometimes the user may want to print the integer value (consider the type alias
uint8_t
). We decided it is better to be explicit about what it should print: