Fix Windows compilation and improve examples

This commit is contained in:
Antony Polukhin
2016-11-17 22:39:06 +03:00
parent 051a2d3557
commit b9cbcb48be
3 changed files with 5 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ namespace boost {
void assertion_failed_msg(char const* expr, char const* msg, char const* function, char const* file, long line) {
std::cerr << "Expression '" << expr << "' is false in function '" << function << "': " << (msg ? msg : "<...>") << ".\n"
<< "Backtrace:\n" << boost::stacktrace::stacktrace() << '\n';
throw std::logic_error("assertion");
std::abort();
}
void assertion_failed(char const* expr, char const* function, char const* file, long line) {