2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
6 * Copyright (c) 2018 Andrey Semashev
9 * \file atomic/detail/type_traits/is_floating_point.hpp
11 * This header defines \c is_floating_point type trait
14 #ifndef BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_FLOATING_POINT_HPP_INCLUDED_
15 #define BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_FLOATING_POINT_HPP_INCLUDED_
17 #include <boost/atomic/detail/config.hpp>
18 // Some versions of libstdc++ don't consider __float128 a floating point type. Use Boost.TypeTraits because of that.
19 #if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_BASIC_HDR_TYPE_TRAITS) && !defined(BOOST_HAS_FLOAT128)
20 #include <type_traits>
22 #include <boost/type_traits/is_floating_point.hpp>
25 #ifdef BOOST_HAS_PRAGMA_ONCE
33 #if !defined(BOOST_ATOMIC_DETAIL_NO_CXX11_BASIC_HDR_TYPE_TRAITS) && !defined(BOOST_HAS_FLOAT128)
34 using std::is_floating_point;
36 using boost::is_floating_point;
40 } // namespace atomics
43 #endif // BOOST_ATOMIC_DETAIL_TYPE_TRAITS_IS_FLOATING_POINT_HPP_INCLUDED_