From 1ab9131bcaddb3ac819edebd2c8d478ab8556f62 Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Thu, 14 Mar 2013 17:35:42 +0000 Subject: [PATCH] Utility: merge [68982] to fix #5213. [SVN r83427] --- 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