From 7d23c75eefb4597f66fd34c31be2740ffa25a2a6 Mon Sep 17 00:00:00 2001 From: David Deakins Date: Fri, 18 Feb 2011 03:46:55 +0000 Subject: [PATCH] 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) [SVN r68982] --- include/boost/assert.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/assert.hpp b/include/boost/assert.hpp index 174f084..a233505 100644 --- a/include/boost/assert.hpp +++ b/include/boost/assert.hpp @@ -101,7 +101,12 @@ namespace boost << "***** 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