[type_traits] is_character<T> trait
Hi, Boost.LexicalCast has a trait boost::detail::is_character<T>, that evaluates to true if T is char, char16_t, wchar_t, unsigned char or any other character type. If this trait looks useful, I can move it to TypeTraits library, add docs and tests. Is there any interest in such trait? -- Best regards, Antony Polukhin
Boost.LexicalCast has a trait boost::detail::is_character<T>, that evaluates to true if T is char, char16_t, wchar_t, unsigned char or any other character type.
If this trait looks useful, I can move it to TypeTraits library, add docs and tests.
Is there any interest in such trait?
I can't currently think of a pressing use for it, but I have no objection in moving it to type_traits. John.
I"m a little concerned about what happens on platforms where wchar_t and some version of int are aliases for the same underlying type. This has caused some pain in the past. Robert Ramey -- View this message in context: http://boost.2283326.n4.nabble.com/type-traits-is-character-T-trait-tp466676... Sent from the Boost - Dev mailing list archive at Nabble.com.
participants (3)
-
Antony Polukhin
-
John Maddock
-
Robert Ramey