eq() is supposed (not defined anywhere) to be a float equal function using a
given epsilon tolerance. It would likely work with == in the given context.
Baptiste.
----- Original Message -----
From: Nelson Cysneros
To: cpp...@li...
Sent: Wednesday, May 29, 2002 8:50 PM
Subject: [Cppunit-devel] Cookbook Question
I apologize if this is a very obvious question but ..
Regarding the following function of your CPPUnit Cook book:
bool operator ==( const Complex &a, const Complex &b )
{
return eq( a.real, b.real ) && eq( a.imaginary, b.imaginary );
}
Where is eq defined? I have tried to locate a include file that contains that method, but it does not seem to exist. Is this a method we need to create?
Best Regards,
Nelson A. Cysneros
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
|