$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Sohail Somani (sohail_at_[hidden])
Date: 2008-05-02 16:36:02
Robert Dailey wrote:
[snip]
> Anyway, I have a class named "Foo", and I've given it an overloaded
> boolean == operator. When I do the following, it fails to compile under
> MSVC9:
Dude, read the error:
[snip]
> 1>c:\it\tfs\crusades\sdks\boost\boost\test\test_tools.hpp(342) : error
> C2679: binary '<<' : no operator found which takes a right-hand operand
> of type 'const Foo' (or there is no acceptable conversion)
No operator<< not ==. Boost test has something like this for
CHECK_EQUAL(a,b):
if(a!=b) { cout << "omg a!=b [a=" << a << ", b=" << b << "]" }
-- Sohail Somani http://uint32t.blogspot.com