]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/units/test/test_reduce_unit.cpp
1 // Boost.Units - A C++ library for zero-overhead dimensional analysis and
2 // unit/quantity manipulation and conversion
4 // Copyright (C) 2003-2008 Matthias Christian Schabel
5 // Copyright (C) 2007-2008 Steven Watanabe
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)
14 \brief test_reduce_unit.cpp
17 Test that reduce_unit works correctly by itself to try to isolate problems.
24 #include <boost/units/reduce_unit.hpp>
25 #include <boost/units/base_units/si/kelvin.hpp>
27 #include <boost/mpl/assert.hpp>
28 #include <boost/type_traits/is_same.hpp>
30 BOOST_MPL_ASSERT((boost::is_same
<boost::units::reduce_unit
<boost::units::si::kelvin_base_unit::unit_type
>::type
, boost::units::si::kelvin_base_unit::unit_type
>));