[Cppunit-cvs] cppunit2/include/opentest properties.h,1.9,1.10
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-02-23 21:40:22
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28570/include/opentest Modified Files: properties.h Log Message: * fixed included for std::bad_cast * changed implementation (overridding what() instead of calling contructor as it was not portable). Index: properties.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/properties.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** properties.h 21 Nov 2004 22:26:32 -0000 1.9 --- properties.h 23 Feb 2005 21:40:13 -0000 1.10 *************** *** 17,24 **** class OPENTEST_API ValueBadCast : public std::bad_cast { ! public: ! ValueBadCast() ! : std::bad_cast( "Bad OpenTest::Value cast." ) { } }; --- 17,25 ---- class OPENTEST_API ValueBadCast : public std::bad_cast { ! public: // overriden from std::bad_cast ! const char * what() const throw() { + return "ValueBadCast: " + "Value can not be converted to the specified type."; } }; |