Boost logo

Boost :

Subject: [boost] [config] BOOST_STL_SUPPORTS_NEW_UNICODE_LOCALES macro?
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2012-04-07 04:35:12


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk