Boost logo

Boost Users :

Subject: Re: [Boost-users] Does Boost.Test support std::wstring log
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-06-14 04:02:08


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.
>>
> Is this decision out of convenience or any implementation obstacle.
> Specifically, what would be the problems if std::basic_ostream<Ch> is
> used instead?

It's just non-trivial to do properly.

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net