exception_policy.hpp 761 B

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