• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Boost test/cmp_header.hpp header file
2  *
3  * Copyright 2003 Guillaume Melquiond
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE_1_0.txt or
7  * copy at http://www.boost.org/LICENSE_1_0.txt)
8  */
9 
10 #include <boost/numeric/interval/interval.hpp>
11 #include <boost/numeric/interval/checking.hpp>
12 #include <boost/numeric/interval/compare.hpp>
13 #include <boost/numeric/interval/policies.hpp>
14 #include <boost/test/test_tools.hpp>
15 #include "bugs.hpp"
16 
17 struct empty_class {};
18 
19 typedef boost::numeric::interval_lib::policies
20           <empty_class, boost::numeric::interval_lib::checking_base<int> >
21   my_policies;
22 
23 typedef boost::numeric::interval<int, my_policies> I;
24 
25 #define BOOST_C_EXN(e) \
26   BOOST_CHECK_THROW(e, boost::numeric::interval_lib::comparison_error)
27