mirror of
https://github.com/boostorg/functional.git
synced 2025-07-31 04:57:16 +02:00
In test case use BOOST_NORETURN for throw_exception
This commit is contained in:
@ -7,7 +7,7 @@ Distributed under the Boost Software License, Version 1.0.
|
|||||||
*/
|
*/
|
||||||
#include <boost/functional/factory.hpp>
|
#include <boost/functional/factory.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/smart_ptr/shared_ptr.hpp>
|
||||||
|
|
||||||
struct type {
|
struct type {
|
||||||
explicit type(bool b) {
|
explicit type(bool b) {
|
||||||
|
@ -8,13 +8,14 @@ Distributed under the Boost Software License, Version 1.0.
|
|||||||
#include <boost/functional/factory.hpp>
|
#include <boost/functional/factory.hpp>
|
||||||
#include <boost/core/default_allocator.hpp>
|
#include <boost/core/default_allocator.hpp>
|
||||||
#include <boost/core/lightweight_test.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>
|
#include <exception>
|
||||||
|
|
||||||
#if defined(BOOST_NO_EXCEPTIONS)
|
#if defined(BOOST_NO_EXCEPTIONS)
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
void throw_exception(const std::exception&)
|
BOOST_NORETURN void throw_exception(const std::exception&)
|
||||||
{
|
{
|
||||||
std::terminate();
|
std::terminate();
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ Distributed under the Boost Software License, Version 1.0.
|
|||||||
*/
|
*/
|
||||||
#include <boost/functional/factory.hpp>
|
#include <boost/functional/factory.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/smart_ptr/shared_ptr.hpp>
|
||||||
|
|
||||||
class sum {
|
class sum {
|
||||||
public:
|
public:
|
||||||
|
@ -10,7 +10,7 @@ Distributed under the Boost Software License, Version 1.0.
|
|||||||
*/
|
*/
|
||||||
#include <boost/functional/factory.hpp>
|
#include <boost/functional/factory.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/smart_ptr/shared_ptr.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
class sum {
|
class sum {
|
||||||
|
Reference in New Issue
Block a user