Ticket #7394: boost2.patch
File boost2.patch, 852 bytes (added by , 10 years ago) |
---|
-
boost/serialization/smart_cast.hpp
old new 159 159 static T cast(U * u){ 160 160 T tmp = dynamic_cast< T >(u); 161 161 #ifndef NDEBUG 162 if ( tmp == 0 ) throw std::bad_cast();162 if ( tmp == 0 ) throw_exception(std::bad_cast()); 163 163 #endif 164 164 return tmp; 165 165 } … … 201 201 static T cast(U * u){ 202 202 T tmp = dynamic_cast< T >(u); 203 203 #ifndef NDEBUG 204 if ( tmp == 0 ) throw std::bad_cast();204 if ( tmp == 0 ) throw_exception(std::bad_cast()); 205 205 #endif 206 206 return tmp; 207 207 }