Ticket #4119: lexicalCastNoExceptionsWorkaround.patch
File lexicalCastNoExceptionsWorkaround.patch, 701 bytes (added by , 13 years ago) |
---|
-
lexical_cast.hpp
55 55 namespace boost 56 56 { 57 57 // exception used to indicate runtime lexical_cast failure 58 class bad_lexical_cast : public std::bad_cast 58 class bad_lexical_cast : 59 // workaround MSVC bug with std::bad_cast when _HAS_EXCEPTIONS == 0 60 #if defined(BOOST_MSVC) && defined(_HAS_EXCEPTIONS) && !_HAS_EXCEPTIONS 61 public std::exception 62 #else 63 public std::bad_cast 64 #endif 59 65 60 66 #if defined(__BORLANDC__) && BOOST_WORKAROUND( __BORLANDC__, < 0x560 ) 61 67 // under bcc32 5.5.1 bad_cast doesn't derive from exception