Boost C++ Libraries: Ticket #7478: Compiles fails with compilers supporting char16_t and char32_t fails if the library doesn't provides std::u16string and std::u32string https://svn.boost.org/trac10/ticket/7478 <pre class="wiki">In file included from ratio_io/ratio_io_pass.cpp:16: ../../../boost/ratio/ratio_io.hpp:130:17: error: no type named 'u16string' in namespace 'std' static std::u16string symbol() {return std::u16string(1, u'a');} ~~~~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. "/Users/viboes/clang/clang+llvm-3.1-x86_64-apple-darwin11/bin/clang++" -x c++ -std=c++11 -O0 -g -Wextra -Wno-long-long -pedantic -O0 -fno-inline -Wall -pedantic -g -DBOOST_ALL_NO_LIB=1 -DBOOST_ENABLE_WARNINGS -DBOOST_MPL_NEXT_PRIOR_EXT -DBOOST_RATIO_USES_MPL_ASSERT -DBOOST_RATIO_VERSION=2 -I"../../.." -c -o "../../../bin.v2/libs/ratio/test/ratio_io_pass.test/clang-darwin-3.1x/debug/ratio_io/ratio_io_pass.o" "ratio_io/ratio_io_pass.cpp" </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7478 Trac 1.4.3 viboes Sun, 07 Oct 2012 13:34:41 GMT status changed https://svn.boost.org/trac10/ticket/7478#comment:1 https://svn.boost.org/trac10/ticket/7478#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Currently there are no macros BOOST_NO_CXX11_U16STRING and BOOST_NO_CXX11_U32STRING signaling that the standard library doesn't provides std::u16string or std::u32string. The attached patch avoid the compile error when Boost.Config will provide these macros. In the mean time the user needs to define them explicitly while using Boost.ratio in these conditions. </p> <p> </p> Ticket viboes Sun, 07 Oct 2012 13:35:08 GMT attachment set https://svn.boost.org/trac10/ticket/7478 https://svn.boost.org/trac10/ticket/7478 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">7478.patch</span> </li> </ul> Ticket viboes Sun, 07 Oct 2012 13:47:28 GMT summary changed https://svn.boost.org/trac10/ticket/7478#comment:2 https://svn.boost.org/trac10/ticket/7478#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">Compiles fails with compilers supporting char16_t and char32_t fails if the library don't provides std::u16string and std::u32string</span> → <span class="trac-field-new">Compiles fails with compilers supporting char16_t and char32_t fails if the library doesn't provides std::u16string and std::u32string</span> </li> </ul> Ticket viboes Sun, 07 Oct 2012 13:54:09 GMT <link>https://svn.boost.org/trac10/ticket/7478#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7478#comment:3</guid> <description> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/80896" title="Ratio: fixes parially 7478">[80896]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 09 Oct 2012 23:16:31 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/7478#comment:4 https://svn.boost.org/trac10/ticket/7478#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.52.0</span> </li> </ul> <p> Merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/80920" title="Ratio: merge 80896">[80920]</a> </p> Ticket viboes Wed, 10 Oct 2012 22:27:29 GMT <link>https://svn.boost.org/trac10/ticket/7478#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7478#comment:5</guid> <description> <p> Committed in trunk revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/80946" title="Ratio: Temporary definition of BOOST_NO_CXX11_U16STRING and ...">[80946]</a><a class="changeset" href="https://svn.boost.org/trac10/changeset/80947" title="Ratio: Temporary definition of BOOST_NO_CXX11_U16STRING and ...">[80947]</a> : Temporary definition of BOOST_NO_CXX11_U16STRING and BOOST_NO_CXX11_U32STRING waiting for their definition on Boost.Config. </p> </description> <category>Ticket</category> </item> </channel> </rss>