Ticket #1944: test.cpp
| File test.cpp, 374 bytes (added by , 14 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <boost/numeric/interval.hpp> |
| 2 | #include <gmpxx.h> |
| 3 | |
| 4 | |
| 5 | namespace boost { |
| 6 | namespace numeric { |
| 7 | namespace interval_lib { |
| 8 | template<> |
| 9 | struct rounded_math<mpq_class> |
| 10 | :save_state_nothing<rounded_arith_exact<mpq_class> > |
| 11 | {}; |
| 12 | } |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | int main(int argc, char **argv){ |
| 17 | boost::numeric::interval<mpq_class> i(0,1); |
| 18 | i = boost::numeric::pow(i, 4); |
| 19 | } |
