Boost logo

Boost Users :

Subject: Re: [Boost-users] error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const is a user-defined type, however, I'm getting the following:'
From: Kenny Riddile (kfriddile_at_[hidden])
Date: 2008-12-19 16:01:26


Joseph A. Marks wrote:
> Has anyone seen an error like this?
>
> SpecialDate is a user-defined type, however, I'm getting the following:
>
> boost/test/test_tools.hpp(326) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const is a user-defined type, however, I'm getting the following:
> ' (or there is no acceptable conversion)
>
> Thanks in Advance,
>
> Joseph A. Marks
> e-mail: josephamarks_at_[hidden]

I believe Boost.test likes to output the values in question to stdout
when a test case fails. If one of those values is a user-defined type,
that type will need an overloaded << operator for this to work.


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