]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/safe_numerics/test/test_float.cpp
1 // Copyright (c) 2012 Robert Ramey
3 // Distributed under the Boost Software License, Version 1.0. (See
4 // accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 // testing floating point
9 // this is a compile only test - but since many build systems
10 // can't handle a compile-only test - make sure it passes trivially.
12 #include <boost/safe_numerics/safe_integer.hpp>
14 template<typename T
, typename U
>
25 // the operators below are restricted to integral types
28 using namespace boost::safe_numerics
;
30 test<safe<std::int8_t>, float>();
31 test<safe<std::int16_t>,float>();
32 test<safe<std::int32_t>, float>();
33 test<safe<std::int64_t>, float>();