Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84047 - trunk/boost/geometry/index
From: adam.wulkiewicz_at_[hidden]
Date: 2013-04-25 10:13:18


Author: awulkiew
Date: 2013-04-25 10:13:16 EDT (Thu, 25 Apr 2013)
New Revision: 84047
URL: http://svn.boost.org/trac/boost/changeset/84047

Log:
geometry.index: supported environments with disabled exceptions (BOOST_NO_EXCEPTIONS) - committed missed file.
Text files modified:
   trunk/boost/geometry/index/rtree.hpp | 15 +++++++++------
   1 files changed, 9 insertions(+), 6 deletions(-)

Modified: trunk/boost/geometry/index/rtree.hpp
==============================================================================
--- trunk/boost/geometry/index/rtree.hpp (original)
+++ trunk/boost/geometry/index/rtree.hpp 2013-04-25 10:13:16 EDT (Thu, 25 Apr 2013)
@@ -22,6 +22,7 @@
 #include <boost/geometry/index/detail/config_begin.hpp>
 
 #include <boost/geometry/index/detail/assert.hpp>
+#include <boost/geometry/index/detail/exception.hpp>
 
 #include <boost/geometry/index/detail/rtree/options.hpp>
 
@@ -211,15 +212,16 @@
                  allocator_type const& allocator = allocator_type())
         : m_members(getter, equal, parameters, allocator)
     {
- try
+ BOOST_TRY
         {
             this->insert(first, last);
         }
- catch(...)
+ BOOST_CATCH(...)
         {
             this->raw_destroy(*this);
- throw;
+ BOOST_RETHROW
         }
+ BOOST_CATCH_END
     }
 
     /*!
@@ -245,15 +247,16 @@
                           allocator_type const& allocator = allocator_type())
         : m_members(getter, equal, parameters, allocator)
     {
- try
+ BOOST_TRY
         {
             this->insert(rng);
         }
- catch(...)
+ BOOST_CATCH(...)
         {
             this->raw_destroy(*this);
- throw;
+ BOOST_RETHROW
         }
+ BOOST_CATCH_END
     }
 
     /*!


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