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:'
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@yahoo.com
On Fri, Dec 19, 2008 at 10:21 AM, Joseph A. Marks
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)
Did you copy/paste something wrong? Either way, you may want to check your friend overloaded operator<< function's signature to make sure it is correct. Do you have a test case you can send for us to look at, or can you just send the code in full?
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@yahoo.com
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.
Kenny Riddile
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> yahoo.com
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.
Yep. That's right summary. I would reply sooner, but for the completely unreadable subject. It does not fit into my subject line and doesn't mention boost.test. Gennadiy
participants (4)
-
Gennadiy Rozental
-
Joseph A. Marks
-
Kenny Riddile
-
OvermindDL1