]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/safe_numerics/concept/exception_policy.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / safe_numerics / concept / exception_policy.hpp
1 #ifndef BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP
2 #define BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP
3
4 // Copyright (c) 2015 Robert Ramey
5 //
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)
9
10 namespace boost {
11 namespace safe_numerics {
12
13 template<class EP>
14 struct ExceptionPolicy {
15 const char * message;
16 /*
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)
22 }
23 */
24 };
25
26 } // safe_numerics
27 } // boost
28
29 #endif // BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP