Re: [Cppunit-devel] equality of const objects
Brought to you by:
blep
From: Stanley S. <su...@t-...> - 2001-10-01 19:29:33
|
"Steve M. Robbins" wrote: > Can't we have both? What about > > template <class T> > void assertEquals( const T& expected, > const T& actual, ... ) > > template <class T> > void assertEquals( T& expected, > T& actual, ... ) > > with the same implementation. > [Ditto for the default assertion_traits template] > > I just tried this modification; the library builds and runs > the test suite successfully. Comments? > > -Steve > > Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel This will break on Sun's Forte 6, update 1 compiler, although it is perfectly valid C++, according to both ISO and ANSI. I hope it will be fixed in update 2. -- Stanley M. Sutton sms...@ie... su...@t-... TSurf Corporation - The gOcad Company - http://www.t-surf.com 11011 Richmond Ave. Suite 350 Houston TX 77042 Phone: (1) 713 787 0746 ext. 13 Fax: (1) 713 787 0852 --------------------------------------------------------------------- They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin |