CppUnit Cookbook / Fixture

"Paul Whitehead" <[email protected]> Tue, 2 Sep 2003 13:16:38 +0100
Newsgroups gmane.comp.lib.cppunit.devel
Message-ID <[email protected]>
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 =3D=3D( const Complex &a, const Complex &b ) { return eq( =
a.real, b.real ) && eq( a.imaginary, b.imaginary ); }=20

Don't you need to define the eq() method before this will compile and =
run or am I missing something?

Regards,
Paul.

________________________________________________________________________
This=20email=20has=20been=20scanned=20for=20all=20viruses=20by=20the=20Mes=
sageLabs=20Email
Security=20System.=20For=20more=20information=20on=20a=20proactive=20email=
=20security
service=20working=20around=20the=20clock,=20around=20the=20globe,=20visit
http://www.messagelabs.com
________________________________________________________________________


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf