In common.h, define func_lib for function objects. In configure.ac, define HAVE_STD_FUNCTION and HAVE_BOOST_FUNCTION. Include function headers in ndnboost.
diff --git a/ndnboost/assert.hpp b/ndnboost/assert.hpp
index 73f3df2..539857c 100644
--- a/ndnboost/assert.hpp
+++ b/ndnboost/assert.hpp
@@ -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