Boost C++ Libraries: Ticket #9268: boost.locale does not support char16_t for g++ 4.7 https://svn.boost.org/trac10/ticket/9268 <p> Hello. I'm trying to use boost.locale to convert charset to UTF-16 but the char16_t implementation of the to_utf function is disabled with the </p> <pre class="wiki">#ifdef BOOST_HAS_CHAR16_T </pre><p> construction. I'm using g++ 4.7 with the -std=c++11 option and all new character types are works fine. However BOOST_HAS_CHAR16_T is not defined. I have researched source codes of the boost library and not found a place where the BOOST_HAS_CHAR16_T flag enabling for the g++ compiler. Please, provide enabling this flag for modern versions of the g++ compiler. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9268 Trac 1.4.3 Artyom Beilis Sat, 19 Oct 2013 10:05:36 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9268#comment:1 https://svn.boost.org/trac10/ticket/9268#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> See: <a href="http://www.boost.org/doc/libs/1_54_0/libs/locale/doc/html/status_of_cpp0x_characters_support.html">http://www.boost.org/doc/libs/1_54_0/libs/locale/doc/html/status_of_cpp0x_characters_support.html</a> </p> <p> The fact that there is char16_t does not make it useful. </p> Ticket