[config] BOOST_STL_SUPPORTS_NEW_UNICODE_LOCALES macro?

7 Apr
2012
7 Apr
'12
8:35 a.m.
Hi, I'm interested in preprocessor macro, that provides info about std::locale() usability with char16_t and char32_t character types. Currently, some compilers provide new Unicode character types, but calls to std::locale() generate runtime error. I'd like to use that macro to: * provide compile time errors instead of runtime errors * enable/disable some Boost.Lexical_cast tests. Another useful macro would be BOOST_UNICODE_FULL_SUPPORT. It can be defined like this: #if !defined(BOOST_NO_CHAR32_T) \ && !defined(BOOST_NO_CHAR16_T) \ && !defined(BOOST_NO_UNICODE_LITERALS) \ && defined(BOOST_STL_SUPPORTS_NEW_UNICODE_LOCALES) #define BOOST_UNICODE_FULL_SUPPORT #endif -- Best regards, Antony Polukhin
4815
Age (days ago)
4815
Last active (days ago)
0 comments
1 participants
participants (1)
-
Antony Polukhin