Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78187 - trunk/boost/exception/detail
From: DDeakins_at_[hidden]
Date: 2012-04-24 23:54:38


Author: davedeakins
Date: 2012-04-24 23:54:37 EDT (Tue, 24 Apr 2012)
New Revision: 78187
URL: http://svn.boost.org/trac/boost/changeset/78187

Log:
For Windows CE, rethrow_exception should use ::exit instead of ::abort (the CRT on Windows CE does not include ::abort).
Text files modified:
   trunk/boost/exception/detail/exception_ptr.hpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/exception/detail/exception_ptr.hpp
==============================================================================
--- trunk/boost/exception/detail/exception_ptr.hpp (original)
+++ trunk/boost/exception/detail/exception_ptr.hpp 2012-04-24 23:54:37 EDT (Tue, 24 Apr 2012)
@@ -457,7 +457,12 @@
         BOOST_ASSERT(p);
         p.ptr_->rethrow();
         BOOST_ASSERT(0);
- abort();
+ #if defined(UNDER_CE)
+ // some CE platforms don't define ::abort(), let alone std::abort()
+ exit(-1);
+ #else
+ abort();
+ #endif
         }
 
     inline


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