11 Nov
2005
11 Nov
'05
6:23 p.m.
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