1 | /////////////////////////////////////////////////////////////////////////////// |
---|---|
2 | // Copyright 2015 John Maddock. Distributed under the Boost |
3 | // Software License, Version 1.0. (See accompanying file |
4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
5 | |
6 | #include <boost/rational.hpp> |
7 | |
8 | int main() |
9 | { |
10 | boost::rational<int> rat(2); |
11 | rat = rat + 0.5; |
12 | } |