Update of /cvsroot/boost/boost/boost/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6695
Modified Files:
dynamic_bitset.hpp
Log Message:
updated copyright notice (years); added slash to doc url; introduced shifter<>
template, for the implementation of the constructor from ulong
Index: dynamic_bitset.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/detail/dynamic_bitset.hpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- dynamic_bitset.hpp 24 Apr 2004 08:48:03 -0000 1.16
+++ dynamic_bitset.hpp 25 Jun 2006 19:05:46 -0000 1.17
@@ -1,7 +1,7 @@
// --------------------------------------------------
//
// (C) Copyright Chuck Allison and Jeremy Siek 2001 - 2002.
-// (C) Copyright Gennaro Prota 2003 - 2004.
+// (C) Copyright Gennaro Prota 2003 - 2006.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
@@ -9,7 +9,7 @@
//
// -----------------------------------------------------------
-// See http://www.boost.org/libs/dynamic_bitset for documentation.
+// See http://www.boost.org/libs/dynamic_bitset/ for documentation.
#ifndef BOOST_DETAIL_DYNAMIC_BITSET_HPP
@@ -35,6 +35,14 @@
return static_cast<const unsigned char *>(static_cast<const void
*>(p));
}
+ template<typename T, int amount, int width /* = default */>
+ struct shifter
+ {
+ static void left_shift(T & v) {
+ amount >= width ? (v = 0)
+ : (v >>= BOOST_DYNAMIC_BITSET_WRAP_CONSTANT(amount));
+ }
+ };
// ------- count function implementation --------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs