blob: 0a1461212e480e1a64226ba2ec42d539d7824718 [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
Jeff Thompson3d613fd2013-10-15 15:39:04 -07006#ifndef NDNBOOST_MATH_TOOLS_REAL_CAST_HPP
7#define NDNBOOST_MATH_TOOLS_REAL_CAST_HPP
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07008
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
Jeff Thompson3d613fd2013-10-15 15:39:04 -070026#endif // NDNBOOST_MATH_TOOLS_REAL_CAST_HPP
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070027
28
29