From 97a934102e3819b2bb9b6aeffcc741b97278b366 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Mon, 22 Sep 2008 18:27:58 +0000 Subject: [PATCH] Improving CodeGear C++Builder 2009 compatibility [SVN r48918] --- include/boost/exception/exception.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } ////////////////////////////////////////////////////////////////////////