Ticket #2343: boost_exception2.patch
File boost_exception2.patch, 1.5 KB (added by , 14 years ago) |
---|
-
exception.hpp
6 6 #ifndef UUID_274DA366004E11DCB1DDFE2E56D89593 7 7 #define UUID_274DA366004E11DCB1DDFE2E56D89593 8 8 9 #include <boost/config.hpp> 10 9 11 namespace 10 12 boost 11 13 { … … 313 315 exception_detail::enable_error_info_return_type<T>::type 314 316 enable_error_info( T const & x ) 315 317 { 316 return typenameexception_detail::enable_error_info_return_type<T>::type(x);318 return BOOST_CTOR_TYPENAME exception_detail::enable_error_info_return_type<T>::type(x); 317 319 } 318 320 319 321 //////////////////////////////////////////////////////////////////////// -
get_error_info.hpp
10 10 #include <boost/exception/detail/error_info_impl.hpp> 11 11 #include <boost/exception/detail/type_info.hpp> 12 12 #include <boost/shared_ptr.hpp> 13 #include <boost/detail/workaround.hpp> 13 14 #include <string.h> 14 15 15 16 namespace … … 42 43 { 43 44 size_t n=1+strlen(s); 44 45 char * str = new char[n]; 46 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) 47 (void) ::std::memcpy(str,s,n); 48 #else 45 49 (void) memcpy(str,s,n); 50 #endif 46 51 return str; 47 52 } 48 53 };