math/config/has_128bit_floatmax_t.cpp
Matt Borland 0339733a79
Replace BOOST_STATIC_ASSERT with static_assert
and add useful error messages
2021-03-14 22:06:15 +03:00

19 lines
480 B
C++

// Copyright John Maddock 2014.
// Use, modification and distribution are subject to 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 <boost/cstdfloat.hpp>
#ifndef BOOST_FLOAT128_C
#error "There is no 128 bit floating point type"
#endif
static_assert(sizeof(boost::floatmax_t) * CHAR_BIT == 128, "floatmax_t is not a 128-bit floating point type");
int main()
{
return 0;
}