| 1 | // Boost.Units - A C++ library for zero-overhead dimensional analysis and |
|---|---|
| 2 | // unit/quantity manipulation and conversion |
| 3 | // |
| 4 | // Copyright (C) 2003-2008 Matthias Christian Schabel |
| 5 | // Copyright (C) 2008 Steven Watanabe |
| 6 | // |
| 7 | // Distributed under the Boost Software License, Version 1.0. (See |
| 8 | // accompanying file LICENSE_1_0.txt or copy at |
| 9 | // http://www.boost.org/LICENSE_1_0.txt) |
| 10 | |
| 11 | /** |
| 12 | \file |
| 13 | |
| 14 | \brief test_negative_denominator.cpp |
| 15 | |
| 16 | \details |
| 17 | Test negative denominator for static_rational class. |
| 18 | |
| 19 | Output: |
| 20 | @verbatim |
| 21 | @endverbatim |
| 22 | **/ |
| 23 | |
| 24 | #include <boost/units/static_rational.hpp> |
| 25 | |
| 26 | #include <boost/mpl/assert.hpp> |
| 27 | #include <boost/type_traits/is_same.hpp> |
| 28 | |
| 29 | BOOST_MPL_ASSERT((boost::is_same<boost::units::static_rational<-2,1>::type, boost::units::static_rational<2, -1>::type>)); |
| 30 | |
| 31 | int main() { |
| 32 | } |
| 33 |
