diff -rupN boost_1_43_0/boost/system/error_code.hpp boost_vms_1_43_0/boost/system/error_code.hpp
old
|
new
|
namespace boost
|
463 | 463 | |
464 | 464 | inline std::size_t hash_value( const error_code & ec ) |
465 | 465 | { |
| 466 | #if defined(__VMS) && __INITIAL_POINTER_SIZE == 64 |
| 467 | return static_cast<std::size_t>(ec.value()) |
| 468 | + reinterpret_cast<long long int>(&ec.category()); |
| 469 | #else |
466 | 470 | return static_cast<std::size_t>(ec.value()) |
467 | 471 | + reinterpret_cast<std::size_t>(&ec.category()); |
| 472 | #endif |
468 | 473 | } |
469 | 474 | |
470 | 475 | // make_* functions for errc::errc_t -----------------------------// |
diff -rupN boost_1_43_0/boost/system/system_error.hpp boost_vms_1_43_0/boost/system/system_error.hpp
old
|
new
|
namespace boost
|
61 | 61 | { |
62 | 62 | try |
63 | 63 | { |
64 | | m_what = this->std::runtime_error::what(); |
| 64 | #ifdef __VMS |
| 65 | // Workaround for standard library bug, it may return NULL pointer |
| 66 | char const *tmp = this->std::runtime_error::what(); |
| 67 | m_what = tmp ? tmp : ""; |
| 68 | #else |
| 69 | m_what = this->std::runtime_error::what(); |
| 70 | #endif |
65 | 71 | if ( m_error_code ) |
66 | 72 | { |
67 | 73 | if ( !m_what.empty() ) m_what += ": "; |
diff -rupN boost_1_43_0/libs/system/src/error_code.cpp boost_vms_1_43_0/libs/system/src/error_code.cpp
old
|
new
|
namespace
|
189 | 189 | case EILSEQ: return make_error_condition( illegal_byte_sequence ); |
190 | 190 | case EINPROGRESS: return make_error_condition( operation_in_progress ); |
191 | 191 | case EINTR: return make_error_condition( interrupted ); |
| 192 | #ifndef __VMS |
192 | 193 | case EINVAL: return make_error_condition( invalid_argument ); |
| 194 | #endif |
193 | 195 | case EIO: return make_error_condition( io_error ); |
194 | 196 | case EISCONN: return make_error_condition( already_connected ); |
195 | 197 | case EISDIR: return make_error_condition( is_a_directory ); |