Re: CppUnit Cookbook / Fixture
"Baptiste Lepilleur" <[email protected]> Mon, 8 Sep 2003 21:31:20 +0200
| Newsgroups | gmane.comp.lib.cppunit.devel |
|---|---|
| Message-ID | <00ba01c3763f$c87a95c0$3c80c2d4@gaia> |
Just replace it with a standard '==' (already fixed in the current doc). Baptiste. ----- Original Message ----- From: "Paul Whitehead" <[email protected]> To: <[email protected]> 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 [email protected] https://lists.sourceforge.net/lists/listinfo/cppunit-devel ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf