Does Boost.Test support std::wstring log messages?

2 Jun
2009
2 Jun
'09
9:10 a.m.
Is it possible to use Boost.Test macros with std::wstring directly like this: BOOST_TEST_MESSAGE(L"test log"); ? I tried but it does not work. I find that \test\utils\basic_cstring\basic_cstring.hpp has a templated string implementation. It seems to imply that wide char are supported by Boost.Test. Can anyone please let me know how? Thanks. tom

6 Jun
6 Jun
6:51 a.m.
Tan, Tom (Shanghai) wrote:
Is it possible to use Boost.Test macros with std::wstring directly like this: BOOST_TEST_MESSAGE(L"test log"); ?
Boost.Test internally uses std::ostream. So if you want above to work you'll need to supply appropriate output method. Proper wide string support is not implemented yet. Gennadiy
5901
Age (days ago)
5905
Last active (days ago)
17 comments
5 participants
participants (5)
-
Gennadiy Rozental
-
Tan, Tom (Shanghai)