Boost logo

Boost-Commit :

From: emil_at_[hidden]
Date: 2008-04-21 18:42:55


Author: emildotchevski
Date: 2008-04-21 18:42:54 EDT (Mon, 21 Apr 2008)
New Revision: 44706
URL: http://svn.boost.org/trac/boost/changeset/44706

Log:
Fixed MSVC-specific compile errors when /Za command-line option is used, due to lack of throw() in std::~exception().
Text files modified:
   trunk/boost/exception/enable_error_info.hpp | 4 ++++
   trunk/boost/exception_ptr.hpp | 8 ++++++++
   trunk/libs/exception/test/Jamfile.v2 | 7 +++++++
   3 files changed, 19 insertions(+), 0 deletions(-)

Modified: trunk/boost/exception/enable_error_info.hpp
==============================================================================
--- trunk/boost/exception/enable_error_info.hpp (original)
+++ trunk/boost/exception/enable_error_info.hpp 2008-04-21 18:42:54 EDT (Mon, 21 Apr 2008)
@@ -25,6 +25,10 @@
                 T(x)
                 {
                 }
+
+ ~error_info_injector() throw()
+ {
+ }
             };
 
         struct large_size { char c[256]; };

Modified: trunk/boost/exception_ptr.hpp
==============================================================================
--- trunk/boost/exception_ptr.hpp (original)
+++ trunk/boost/exception_ptr.hpp 2008-04-21 18:42:54 EDT (Mon, 21 Apr 2008)
@@ -30,6 +30,10 @@
             boost::exception(e)
             {
             }
+
+ ~unknown_exception() throw()
+ {
+ }
         };
 
     typedef intrusive_ptr<exception_detail::clone_base const> exception_ptr;
@@ -56,6 +60,10 @@
                 boost::exception(e2)
                 {
                 }
+
+ ~current_exception_std_exception_wrapper() throw()
+ {
+ }
             };
 
         template <class T>

Modified: trunk/libs/exception/test/Jamfile.v2
==============================================================================
--- trunk/libs/exception/test/Jamfile.v2 (original)
+++ trunk/libs/exception/test/Jamfile.v2 2008-04-21 18:42:54 EDT (Mon, 21 Apr 2008)
@@ -7,6 +7,13 @@
 
 import testing ;
 
+project :
+ requirements
+ <link>static
+ <runtime-link>static
+ <toolset>msvc:<cxxflags>/Za
+ ;
+
 #to_string
 run is_output_streamable_test.cpp ;
 run has_to_string_test.cpp ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk