Boost C++ Libraries: Ticket #1136: Let BOOST_CHECK_EQUAL support std::wstring https://svn.boost.org/trac10/ticket/1136 <p> e.g. </p> <pre class="wiki">std::wstring s1,s2; BOOST_CHECK_EQUAL(s1, s2); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1136 Trac 1.4.3 Daryle Walker Mon, 30 Jun 2008 17:46:32 GMT cc set https://svn.boost.org/trac10/ticket/1136#comment:1 https://svn.boost.org/trac10/ticket/1136#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">dwalker07@…</span> added </li> </ul> <p> The testing macros need to support any use of built-in wide-characters, whether it's <code>std::wstring</code>, <code>wchar_t</code> arrays or pointers, or single <code>wchar_t</code> values/objects. I guess you need a special case to <code>wchar_t</code>-related types to be converted to <code>char</code> before being sent to the testing <code>ostream</code>. Code points that are shared between <code>wchar_t</code> and <code>char</code> should map directly, other code point values could map to an escaped hex sequence. </p> Ticket Mateusz Loskot Fri, 19 Feb 2010 18:29:38 GMT cc changed https://svn.boost.org/trac10/ticket/1136#comment:2 https://svn.boost.org/trac10/ticket/1136#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">mateusz@…</span> added </li> </ul> Ticket dtrebbien@… Sun, 01 Apr 2012 16:59:33 GMT cc changed https://svn.boost.org/trac10/ticket/1136#comment:3 https://svn.boost.org/trac10/ticket/1136#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">dtrebbien@…</span> added </li> </ul> Ticket anonymous Fri, 12 Oct 2012 11:16:54 GMT <link>https://svn.boost.org/trac10/ticket/1136#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1136#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/1136#comment:3" title="Comment 3">dtrebbien@…</a>: Do you have any plans to update this? </p> </description> <category>Ticket</category> </item> <item> <author>Richard <legalize@…></author> <pubDate>Fri, 03 Jan 2014 07:58:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1136#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1136#comment:5</guid> <description> <p> It seems there are two alternatives: allow support for wide character stream output logs and reports, or use <a class="ext-link" href="http://en.cppreference.com/w/cpp/io/basic_ios/narrow"><span class="icon">​</span>narrow</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>