diff options
Diffstat (limited to 'src/boost/libs/variant2/test/throw_exception.cpp')
-rw-r--r-- | src/boost/libs/variant2/test/throw_exception.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/boost/libs/variant2/test/throw_exception.cpp b/src/boost/libs/variant2/test/throw_exception.cpp new file mode 100644 index 00000000..9eaccc11 --- /dev/null +++ b/src/boost/libs/variant2/test/throw_exception.cpp @@ -0,0 +1,20 @@ + +// Copyright 2019 Peter Dimov. +// +// Distributed under the Boost Software License, Version 1.0. +// http://www.boost.org/LICENSE_1_0.txt + +#include <boost/config.hpp> +#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 |