mirror of
https://github.com/boostorg/conversion.git
synced 2025-08-05 23:44:27 +02:00
@@ -55,7 +55,13 @@
|
|||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
// exception used to indicate runtime lexical_cast failure
|
// exception used to indicate runtime lexical_cast failure
|
||||||
class bad_lexical_cast : public std::bad_cast
|
class bad_lexical_cast :
|
||||||
|
// workaround MSVC bug with std::bad_cast when _HAS_EXCEPTIONS == 0
|
||||||
|
#if defined(BOOST_MSVC) && defined(_HAS_EXCEPTIONS) && !_HAS_EXCEPTIONS
|
||||||
|
public std::exception
|
||||||
|
#else
|
||||||
|
public std::bad_cast
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__BORLANDC__) && BOOST_WORKAROUND( __BORLANDC__, < 0x560 )
|
#if defined(__BORLANDC__) && BOOST_WORKAROUND( __BORLANDC__, < 0x560 )
|
||||||
// under bcc32 5.5.1 bad_cast doesn't derive from exception
|
// under bcc32 5.5.1 bad_cast doesn't derive from exception
|
||||||
|
Reference in New Issue
Block a user