1 // Copyright John Maddock 2006.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef BOOST_MATH_TOOLS_REAL_CAST_HPP
7 #define BOOST_MATH_TOOLS_REAL_CAST_HPP
13 namespace boost{ namespace math
17 template <class To, class T>
18 inline To real_cast(T t)
20 return static_cast<To>(t);
26 #endif // BOOST_MATH_TOOLS_REAL_CAST_HPP