Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59735 - trunk/boost/property_tree
From: sebastian.redl_at_[hidden]
Date: 2010-02-17 12:53:29


Author: cornedbee
Date: 2010-02-17 12:53:28 EST (Wed, 17 Feb 2010)
New Revision: 59735
URL: http://svn.boost.org/trac/boost/changeset/59735

Log:
Make BOOST_PROPERTY_TREE_THROW an alias for BOOST_THROW_EXCEPTION. I doubt the original motivation for this macro is still very valid, and it causes warnings on more important compilers.
Text files modified:
   trunk/boost/property_tree/ptree_fwd.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/property_tree/ptree_fwd.hpp
==============================================================================
--- trunk/boost/property_tree/ptree_fwd.hpp (original)
+++ trunk/boost/property_tree/ptree_fwd.hpp 2010-02-17 12:53:28 EST (Wed, 17 Feb 2010)
@@ -13,6 +13,7 @@
 
 #include <boost/config.hpp>
 #include <boost/optional/optional_fwd.hpp>
+#include <boost/throw_exception.hpp>
 #include <functional> // for std::less
 #include <memory> // for std::allocator
 #include <string>
@@ -136,7 +137,7 @@
 
 #if !defined(BOOST_PROPERTY_TREE_DOXYGEN_INVOKED)
     // Throwing macro to avoid no return warnings portably
-# define BOOST_PROPERTY_TREE_THROW(e) { throw_exception(e); std::exit(1); }
+# define BOOST_PROPERTY_TREE_THROW(e) BOOST_THROW_EXCEPTION(e)
 #endif
 
 #endif


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