Update of /cvsroot/cppunit/cppunit2/include/cpputtools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28570/include/cpputtools
Modified Files:
value.h
Log Message:
* fixed included for std::bad_cast
* changed implementation (overridding what() instead of calling contructor as it was not portable).
Index: value.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpputtools/value.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** value.h 15 Nov 2004 08:31:43 -0000 1.8
--- value.h 23 Feb 2005 21:40:13 -0000 1.9
***************
*** 3,7 ****
# include "ctti.h"
! # include <stdexcept>
/// @todo Implement broken on VC++ 6 because of linker bug:
--- 3,8 ----
# include "ctti.h"
! # include <typeinfo> // std::bad_cast
! # include <string>
/// @todo Implement broken on VC++ 6 because of linker bug:
***************
*** 16,21 ****
{
public:
! ValueBadCast() : std::bad_cast( "CppUTTools::ValueBadCast" )
{
}
};
--- 17,24 ----
{
public:
! const char * what() const throw()
{
+ return "ValueBadCast: "
+ "Value can not be converted to the specified type.";
}
};
|