From 0ef909cbb5e4c9cdffdcd662a52aeb90083e745e Mon Sep 17 00:00:00 2001 From: "Paul A. Bristow" Date: Sat, 30 Sep 2006 18:02:01 +0000 Subject: [PATCH] Comments and added real_cast s to int unsigned int and long. [SVN r3227] --- include/boost/math/tools/precision.hpp | 7 +++++-- include/boost/math/tools/real_cast.hpp | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/include/boost/math/tools/precision.hpp b/include/boost/math/tools/precision.hpp index 1311e783d..aa9ae9fcd 100644 --- a/include/boost/math/tools/precision.hpp +++ b/include/boost/math/tools/precision.hpp @@ -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 #include -namespace boost{ namespace math{ namespace tools{ +namespace boost{ namespace math +{ +namespace tools +{ template int digits(BOOST_EXPLICIT_TEMPLATE_TYPE(T)) diff --git a/include/boost/math/tools/real_cast.hpp b/include/boost/math/tools/real_cast.hpp index 346cbeed1..7334cd460 100644 --- a/include/boost/math/tools/real_cast.hpp +++ b/include/boost/math/tools/real_cast.hpp @@ -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 -inline To real_cast(T t) +namespace boost{ namespace math { - return static_cast(t); -} - -} // namespace tools + namespace tools + { + template + inline To real_cast(T t) + { + return static_cast(t); + } + } // namespace tools } // namespace math } // namespace boost