Boost logo

Boost-Commit :

From: gennaro.prota_at_[hidden]
Date: 2008-08-24 14:16:25


Author: gennaro_prota
Date: 2008-08-24 14:16:24 EDT (Sun, 24 Aug 2008)
New Revision: 48353
URL: http://svn.boost.org/trac/boost/changeset/48353

Log:
boost/pending/: ported revision 48251 ("integer_log2.hpp and lowest_bit.hpp, in boost/pending/: little comment cleanup (svn anchors, etc.); added a static_cast<> to silence (harmless) MSVC++ warnings") from trunk
Text files modified:
   branches/release/boost/pending/integer_log2.hpp | 12 ++++--------
   branches/release/boost/pending/lowest_bit.hpp | 8 +++-----
   2 files changed, 7 insertions(+), 13 deletions(-)

Modified: branches/release/boost/pending/integer_log2.hpp
==============================================================================
--- branches/release/boost/pending/integer_log2.hpp (original)
+++ branches/release/boost/pending/integer_log2.hpp 2008-08-24 14:16:24 EDT (Sun, 24 Aug 2008)
@@ -1,20 +1,16 @@
-// -------------------------------------
+// -----------------------------------------------------------
 // integer_log2.hpp
 //
 // Gives the integer part of the logarithm, in base 2, of a
 // given number. Behavior is undefined if the argument is <= 0.
 //
-//
-// (C) Copyright Gennaro Prota 2003 - 2004.
+// Copyright (c) 2003-2004, 2008 Gennaro Prota
 //
 // Distributed under 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)
 //
-// ------------------------------------------------------
-//
-// $Id$
-
+// -----------------------------------------------------------
 
 #ifndef BOOST_INTEGER_LOG2_HPP_GP_20030301
 #define BOOST_INTEGER_LOG2_HPP_GP_20030301
@@ -37,7 +33,7 @@
 
       while (x != 1) {
 
- const T t = x >> n;
+ const T t = static_cast<T>(x >> n);
           if (t) {
               result += n;
               x = t;

Modified: branches/release/boost/pending/lowest_bit.hpp
==============================================================================
--- branches/release/boost/pending/lowest_bit.hpp (original)
+++ branches/release/boost/pending/lowest_bit.hpp 2008-08-24 14:16:24 EDT (Sun, 24 Aug 2008)
@@ -1,17 +1,15 @@
-// -------------------------------------
+// -----------------------------------------------------------
 // lowest_bit.hpp
 //
 // Position of the lowest bit 'on'
 //
-// (C) Copyright Gennaro Prota 2003 - 2004.
+// Copyright (c) 2003-2004, 2008 Gennaro Prota
 //
 // Distributed under 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)
 //
-// ------------------------------------------------------
-//
-// $Id$
+// -----------------------------------------------------------
 
 #ifndef BOOST_LOWEST_BIT_HPP_GP_20030301
 #define BOOST_LOWEST_BIT_HPP_GP_20030301


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk