Files
safe_numerics/include/concept/exception_policy.hpp
Robert Ramey 2bf3699082 corrected errors in comparison
implemented compile time checking to eliminate redundant run time error checking
first cut with automatic promotion
2015-07-07 14:51:33 -07:00

37 lines
846 B
C++

#ifndef BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP
#define BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
// 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)
#include <boost/concept/usage.hpp>
namespace boost {
namespace numeric {
template<class EP>
struct ExceptionPolicy {
const char * message;
/*
BOOST_CONCEPT_USAGE(ExceptionPolicy){
EP::overflow_error(message);
EP::underflow_error(message);
EP::range_error(message);
EP::domain_error(message);
}
*/
};
} // numeric
} // boost
#endif // BOOST_NUMERIC_CONCEPT_EXCEPTION_POLICY_HPP