]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/units/test/fail_add_temperature.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) 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 fail_add_temperature.cpp
17 Verify that adding two absolute temeratures fails miserably.
24 #include <boost/units/quantity.hpp>
25 #include <boost/units/absolute.hpp>
26 #include <boost/units/systems/si/temperature.hpp>
28 namespace bu
= boost::units
;
30 int main(int,char *[])
33 bu::quantity
<bu::absolute
<bu::si::temperature
> > q(2.0 * bu::absolute
<bu::si::temperature
>());