Disable std::error_code support on g++ 4.5, as that compiler doesn't

handle std::system_error::what() correctly.
This commit is contained in:
Christopher Kohlhoff 2011-03-14 10:57:07 +11:00
parent bc0b24331b
commit ae3be044f8

View File

@ -72,7 +72,7 @@
// Standard library support for system errors.
#if !defined(ASIO_DISABLE_STD_SYSTEM_ERROR)
# if defined(__GNUC__)
# if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5)) || (__GNUC__ > 4)
# if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) || (__GNUC__ > 4)
# if defined(__GXX_EXPERIMENTAL_CXX0X__)
# define ASIO_HAS_STD_SYSTEM_ERROR
# endif // defined(__GXX_EXPERIMENTAL_CXX0X__)