Apply the patch from #4119. Fixes #4119.

[SVN r62529]
This commit is contained in:
Alexander Nasonov
2010-06-07 22:58:42 +00:00
parent 5c1dc5388c
commit 2cfa78ab40

View File

@@ -55,7 +55,13 @@
namespace boost
{
// 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 )
// under bcc32 5.5.1 bad_cast doesn't derive from exception