annotate DEPENDENCIES/generic/include/boost/math/tools/real_cast.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // Copyright John Maddock 2006.
Chris@16 2 // Use, modification and distribution are subject to the
Chris@16 3 // Boost Software License, Version 1.0. (See accompanying file
Chris@16 4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5
Chris@16 6 #ifndef BOOST_MATH_TOOLS_REAL_CAST_HPP
Chris@16 7 #define BOOST_MATH_TOOLS_REAL_CAST_HPP
Chris@16 8
Chris@16 9 #ifdef _MSC_VER
Chris@16 10 #pragma once
Chris@16 11 #endif
Chris@16 12
Chris@16 13 namespace boost{ namespace math
Chris@16 14 {
Chris@16 15 namespace tools
Chris@16 16 {
Chris@16 17 template <class To, class T>
Chris@16 18 inline To real_cast(T t)
Chris@16 19 {
Chris@16 20 return static_cast<To>(t);
Chris@16 21 }
Chris@16 22 } // namespace tools
Chris@16 23 } // namespace math
Chris@16 24 } // namespace boost
Chris@16 25
Chris@16 26 #endif // BOOST_MATH_TOOLS_REAL_CAST_HPP
Chris@16 27
Chris@16 28
Chris@16 29