/*============================================================================= Copyright (c) 2011-2016 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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) =============================================================================*/ #ifndef SPROUT_MATH_DETAIL_FLOAT_COMPUTE_HPP #define SPROUT_MATH_DETAIL_FLOAT_COMPUTE_HPP #include #include namespace sprout { namespace math { namespace detail { template struct float_compute : public sprout::float_promote {}; template inline SPROUT_CONSTEXPR typename sprout::math::detail::float_compute::type as_float_compute(FloatType const& x) { return static_cast::type>(x); } } // namespace detail } // namespace math } // namespace sprout #endif // #ifndef SPROUT_MATH_DETAIL_FLOAT_COMPUTE_HPP