blob: 4b5645c2a9d6d4da52d16dea4a583e251347c6e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
///////////////////////////////////////////////////////////////////////////////
// Copyright 2015 John Maddock. 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/rational.hpp>
int main()
{
boost::rational<int> rat(2);
return rat == 0.5;
}
|