• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
30