Ticket #2473: bug_unsigned_boost.cc

File bug_unsigned_boost.cc, 317 bytes (added by David Monniaux <David.Monniaux@…>, 14 years ago)

very short example exhibiting bug

Line 
1#include <boost/numeric/interval.hpp>
2#include <iostream>
3
4using namespace boost::numeric;
5using namespace interval_lib;
6
7typedef interval<double> val;
8
9int main() {
10 val x(1U), y(1);
11 std::cout << x.lower() << " " << x.upper() << std::endl;
12 std::cout << y.lower() << " " << y.upper() << std::endl;
13 return 0;
14}