Just replace it with a standard '==' (already fixed in the current doc).
Baptiste.
----- Original Message -----
From: "Paul Whitehead" <pwh...@me...>
To: <cpp...@li...>
Sent: Tuesday, September 02, 2003 2:16 PM
Subject: [Cppunit-devel] CppUnit Cookbook / Fixture
Hi,
in the CppUnit Cookbook
(http://cppunit.sourceforge.net/cppunit_cookbook.html) sub-section called
"Fixture" in the third code sample you have this:
bool operator ==( const Complex &a, const Complex &b ) { return eq( a.real,
b.real ) && eq( a.imaginary, b.imaginary ); }
Don't you need to define the eq() method before this will compile and run or
am I missing something?
Regards,
Paul.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Cppunit-devel mailing list
Cpp...@li...
https://lists.sourceforge.net/lists/listinfo/cppunit-devel
|