Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68982 - trunk/boost
From: DDeakins_at_[hidden]
Date: 2011-02-17 22:46:56


Author: davedeakins
Date: 2011-02-17 22:46:55 EST (Thu, 17 Feb 2011)
New Revision: 68982
URL: http://svn.boost.org/trac/boost/changeset/68982

Log:
Revised the assertion_failed_msg function to use std::exit(-1) instead of std::abort() for Windows CE (since Windows CE does not have an abort() function in the CRT library)
Text files modified:
   trunk/boost/assert.hpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/assert.hpp
==============================================================================
--- trunk/boost/assert.hpp (original)
+++ trunk/boost/assert.hpp 2011-02-17 22:46:55 EST (Thu, 17 Feb 2011)
@@ -101,7 +101,12 @@
               << "***** Internal Program Error - assertion (" << expr << ") failed in "
               << function << ":\n"
               << file << '(' << line << "): " << msg << std::endl;
- std::abort();
+ #ifdef UNDER_CE
+ // The Windows CE CRT library does not have abort() so use exit(-1) instead.
+ std::exit(-1);
+ #else
+ std::abort();
+ #endif
           }
         } // detail
       } // assertion


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