Support -fno-exceptions

This commit is contained in:
Peter Dimov
2019-06-03 02:46:59 +03:00
parent adeb970be6
commit f5d9662946
3 changed files with 48 additions and 0 deletions

19
test/throw_exception.cpp Normal file
View File

@ -0,0 +1,19 @@
// Copyright 2019 Peter Dimov.
//
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
#include <exception>
#include <cstdio>
namespace boost
{
void throw_exception( std::exception const & e )
{
std::fprintf( stderr, "Exception: %s\n", e.what() );
std::terminate();
}
} // namespace boost