diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index 3d5383d..53e6ed0 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -313,7 +313,8 @@ boost exception_detail::enable_error_info_return_type::type enable_error_info( T const & x ) { - return typename exception_detail::enable_error_info_return_type::type(x); + typedef typename exception_detail::enable_error_info_return_type::type rt; + return rt(x); } ////////////////////////////////////////////////////////////////////////