Opened 11 years ago

Last modified 5 years ago

#1136 new Feature Requests

Let BOOST_CHECK_EQUAL support std::wstring

Reported by: pop.atry@… Owned by: Gennadiy Rozental
Milestone: To Be Determined Component: test
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc: dwalker07@…, mateusz@…, dtrebbien@…



std::wstring s1,s2;

Change History (5)

comment:1 Changed 10 years ago by Daryle Walker

Cc: dwalker07@… added

The testing macros need to support any use of built-in wide-characters, whether it's std::wstring, wchar_t arrays or pointers, or single wchar_t values/objects. I guess you need a special case to wchar_t-related types to be converted to char before being sent to the testing ostream. Code points that are shared between wchar_t and char should map directly, other code point values could map to an escaped hex sequence.

comment:2 Changed 9 years ago by Mateusz Loskot

Cc: mateusz@… added

comment:3 Changed 7 years ago by dtrebbien@…

Cc: dtrebbien@… added

comment:4 in reply to:  3 Changed 6 years ago by anonymous

Replying to dtrebbien@…: Do you have any plans to update this?

comment:5 Changed 5 years ago by Richard <legalize@…>

It seems there are two alternatives: allow support for wide character stream output logs and reports, or use narrow.

Note: See TracTickets for help on using tickets.