2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-26 18:52:10 +00:00

Comments and added real_cast s to int unsigned int and long.

[SVN r3227]
This commit is contained in:
Paul A. Bristow
2006-09-30 18:02:01 +00:00
parent 0672bcb1a1
commit 0ef909cbb5
2 changed files with 15 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
// (C) Copyright John Maddock 2005-2006.
// Copyright John Maddock 2005-2006.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -13,7 +13,10 @@
#include <iostream>
#include <iomanip>
namespace boost{ namespace math{ namespace tools{
namespace boost{ namespace math
{
namespace tools
{
template <class T>
int digits(BOOST_EXPLICIT_TEMPLATE_TYPE(T))

View File

@@ -1,4 +1,4 @@
// (C) Copyright John Maddock 2006.
// Copyright John Maddock 2006.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -6,15 +6,16 @@
#ifndef BOOST_MATH_TOOLS_REAL_CAST_HPP
#define BOOST_MATH_TOOLS_REAL_CAST_HPP
namespace boost{ namespace math{ namespace tools{
template <class To, class T>
inline To real_cast(T t)
namespace boost{ namespace math
{
return static_cast<To>(t);
}
} // namespace tools
namespace tools
{
template <class To, class T>
inline To real_cast(T t)
{
return static_cast<To>(t);
}
} // namespace tools
} // namespace math
} // namespace boost