Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] BOOST_CHECK_EQUAL and wchar_t
From: Alexander (gutenev_at_[hidden])
Date: 2009-02-11 03:49:19


> This particular problem is a result of incorrect printing operation of
> wchar_t
> strings into ostream. You can probably implement one yourself, which does
> the
> better job.

The only way I get it called is when I declare it in boost::test_tools
namespace:

namespace boost
{
  namespace test_tools
  {
    std::ostream& operator<<(std::ostream& stream, wchar_t const * s)
    {
      return (stream<< CW2A(s));
    }
  }
}


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