diff --git a/include/boost/exception/detail/object_hex_dump.hpp b/include/boost/exception/detail/object_hex_dump.hpp index f535944..75a4179 100644 --- a/include/boost/exception/detail/object_hex_dump.hpp +++ b/include/boost/exception/detail/object_hex_dump.hpp @@ -11,6 +11,7 @@ #include #include #include +#include namespace boost @@ -21,11 +22,11 @@ boost template inline std::string - object_hex_dump( T const & x, size_t max_size=16 ) + object_hex_dump( T const & x, std::size_t max_size=16 ) { std::ostringstream s; s << "type: " << type_name() << ", size: " << sizeof(T) << ", dump: "; - size_t n=sizeof(T)>max_size?max_size:sizeof(T); + std::size_t n=sizeof(T)>max_size?max_size:sizeof(T); s.fill('0'); s.width(2); unsigned char const * b=reinterpret_cast(&x); diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index e7faf59..fbc0594 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -303,7 +303,7 @@ boost struct enable_error_info_return_type { - typedef typename enable_error_info_helper::type type; + typedef typename enable_error_info_helper::type type; }; } diff --git a/include/boost/exception_ptr.hpp b/include/boost/exception_ptr.hpp index 91dce25..0d18db1 100644 --- a/include/boost/exception_ptr.hpp +++ b/include/boost/exception_ptr.hpp @@ -90,6 +90,10 @@ boost { } + ~exception_ptr() throw() + { + } + operator unspecified_bool_type() const { return _empty() ? 0 : &exception_ptr::bad_alloc_;