blob: 108dcbfd897c1284d5a6c10311b80e229c5f7565 [file] [log] [blame]
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07001// 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
13namespace ndnboost{ 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 ndnboost
25
26#endif // BOOST_MATH_TOOLS_REAL_CAST_HPP
27
28
29