2
0
mirror of https://github.com/boostorg/locale.git synced 2026-02-23 15:52:15 +00:00
Files
locale/doc/html/status_of_cpp0x_characters_support.html
Artyom Beilis 48ff4519b8 - Updates according to library requirements
- cleanup of inspect warnings
  - various requiremets like libraries.htm and maintainers.txt


[SVN r73786]
2011-08-15 19:04:34 +00:00

85 lines
4.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.Locale: Status of C++0x char16_t/char32_t support</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="../style/section-basic.css">
</head>
<body>
<div id="boost-common-heading-doc">
<div class="heading-inner">
<div class="heading-placard"></div>
<h1 class="heading-title">
<a href="http://www.boost.org/">
<img src="../style/space.png" alt= "Boost C++ Libraries" class="heading-logo" />
<span class="heading-boost">Boost</span>
<span class="heading-cpplibraries">C++ Libraries</span>
</a>
</h1>
<p class="heading-quote">
<q>...one of the most highly
regarded and expertly designed C++ library projects in the
world.</q>
<span class="heading-attribution">&mdash; <a href=
"http://www.gotw.ca/" class="external">Herb Sutter</a> and <a href=
"http://en.wikipedia.org/wiki/Andrei_Alexandrescu" class="external">Andrei
Alexandrescu</a>, <a href=
"http://safari.awprofessional.com/?XmlId=0321113586" class="external">C++
Coding Standards</a></span>
</p>
</div>
</div>
<div id="boost-common-heading-doc-spacer"></div>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="navpath">
<ul>
<li><a class="el" href="main.html">Boost.Locale</a> </li>
<li><a class="el" href="appendix.html">Appendix</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<h1>Status of C++0x char16_t/char32_t support </h1> </div>
</div>
<div class="contents">
<p>The support of C++0x <code>char16_t</code> and <code>char32_t</code> is experimental, mostly does not work and not intended to be used in production with current latest compilers: GCC-4.5, MSVC10 till major compiler's flaws would be fixed.</p>
<h2><a class="anchor" id="status_of_cpp0x_characters_support_gnu"></a>
GNU GCC 4.5/C++0x Status</h2>
<p>GNU C++ compiler provides decent support of C++0x characters however:</p>
<ol type="1">
<li>Standard library does not install any std::locale::facets for this support so any attempt to format numbers using <code>char16_t</code> or <code>char32_t</code> streams would just fail.</li>
<li>Standard library misses specialization for required <code>char16_t/char32_t</code> locale facets, so "std" backends is not build-able as essential symbols missing, also <code>codecvt</code> facet can't be created as well.</li>
</ol>
<h2><a class="anchor" id="status_of_cpp0x_characters_support_msvc"></a>
Visual Studio 2010 (MSVC10)/C++0x Status</h2>
<p>MSVC provides all required facets however:</p>
<ol type="1">
<li>Standard library does not provide installations of std::locale::id for these facets in DLL so it is not usable with <code>/MD</code>, <code>/MDd</code> compiler flags and requires static link of the runtime library.</li>
<li><code>char16_t</code> and <code>char32_t</code> are not distinct types but rather aliases of unsigned short and unsigned types which contradicts to C++0x requirements making it impossible to write <code>char16_t/char32_t</code> to stream and causing multiple faults. </li>
</ol>
</div>
<hr class="footer"/><address class="footer"><small>
&copy; Copyright 2009-2011 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
</small></address>
</body>
</html>