Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-11-11 13:23:34


>I am using the Boost Unit Test library and have code that uses the
> BOOST_CHECK_EQUAL macro with std::wstring instances. I get a
> compilation error when I do this because there is no operator<< defined
> for a narrow ostream and a wide string. So, I created one as shown
> below, but I am still getting the exact same compilation error (using
> MSVC 2003). With my new operators, I am able to manually insert wide
> strings into a narrow ostream, but the BOOST_CHECK_EQUAL macro expansion
> still doesn't seem to be picking it up. Any ideas?

Try putting your new functions into std namespace.

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