1 #ifndef BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP
2 #define BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP
4 // Copyright (c) 2015 Robert Ramey
6 // Distributed under the Boost Software License, Version 1.0. (See
7 // accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
11 namespace safe_numerics {
14 struct ExceptionPolicy {
17 BOOST_CONCEPT_USAGE(ExceptionPolicy){
18 EP::on_arithmetic_error(e, message);
19 EP::on_undefined_behavior(e, message)
20 EP::on_implementation_defined_behavior(e, message)
21 EP::on_uninitialized_value(e, message)
29 #endif // BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP