blob: 134ed2580753d50751cc3f6451c770d56786e082 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP
#define BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP
// Copyright (c) 2015 Robert Ramey
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
namespace boost {
namespace safe_numerics {
template<class EP>
struct ExceptionPolicy {
const char * message;
/*
BOOST_CONCEPT_USAGE(ExceptionPolicy){
EP::on_arithmetic_error(e, message);
EP::on_undefined_behavior(e, message)
EP::on_implementation_defined_behavior(e, message)
EP::on_uninitialized_value(e, message)
}
*/
};
} // safe_numerics
} // boost
#endif // BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP
|