In test case use BOOST_NORETURN for throw_exception

This commit is contained in:
Glen Fernandes
2019-08-27 07:30:09 -04:00
parent 4403017952
commit f20515da7d
4 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -8,13 +8,14 @@ Distributed under the Boost Software License, Version 1.0.
#include <boost/functional/factory.hpp>
#include <boost/core/default_allocator.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/smart_ptr/shared_ptr.hpp>
#include <boost/config.hpp>
#include <exception>
#if defined(BOOST_NO_EXCEPTIONS)
namespace boost {
void throw_exception(const std::exception&)
BOOST_NORETURN void throw_exception(const std::exception&)
{
std::terminate();
}