comparison DEPENDENCIES/generic/include/boost/math/tools/real_cast.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
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)
5
6 #ifndef BOOST_MATH_TOOLS_REAL_CAST_HPP
7 #define BOOST_MATH_TOOLS_REAL_CAST_HPP
8
9 #ifdef _MSC_VER
10 #pragma once
11 #endif
12
13 namespace boost{ namespace math
14 {
15 namespace tools
16 {
17 template <class To, class T>
18 inline To real_cast(T t)
19 {
20 return static_cast<To>(t);
21 }
22 } // namespace tools
23 } // namespace math
24 } // namespace boost
25
26 #endif // BOOST_MATH_TOOLS_REAL_CAST_HPP
27
28
29