/////////////////////////////////////////////////////////////////////////////// // Copyright 2012 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 #if defined(HAVE_FLOAT128) #include #endif #ifndef BOOST_NO_CXX11_CONSTEXPR template void silence_unused(const T&) {} template void test1() { constexpr T i1 = 2u; constexpr T i2; constexpr T i3 = -3; constexpr T i4(i1); silence_unused(i1); silence_unused(i2); silence_unused(i3); silence_unused(i4); } template void test2() { constexpr T i1 = 2u; constexpr T i2; constexpr T i3 = -3; silence_unused(i1); silence_unused(i2); silence_unused(i3); } template void test3() { constexpr T i1 = 2u; constexpr T i2; silence_unused(i1); silence_unused(i2); } using namespace boost::multiprecision; template void test1, et_off> >(); template void test1, et_off> >(); template void test3, et_off> >(); template void test2, et_off> >(); #if defined(HAVE_FLOAT128) template void test1(); #endif #endif