Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53076 - trunk/boost/serialization
From: ramey_at_[hidden]
Date: 2009-05-18 02:23:24


Author: ramey
Date: 2009-05-18 02:23:23 EDT (Mon, 18 May 2009)
New Revision: 53076
URL: http://svn.boost.org/trac/boost/changeset/53076

Log:
change number of bits from unsigned int to std::size_t
Text files modified:
   trunk/boost/serialization/bitset.hpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/boost/serialization/bitset.hpp
==============================================================================
--- trunk/boost/serialization/bitset.hpp (original)
+++ trunk/boost/serialization/bitset.hpp 2009-05-18 02:23:23 EDT (Mon, 18 May 2009)
@@ -16,6 +16,7 @@
 #endif
 
 #include <bitset>
+#include <cstddef> // size_t
 
 #include <boost/config.hpp>
 #include <boost/serialization/split_free.hpp>
@@ -25,7 +26,7 @@
 namespace boost{
 namespace serialization{
 
-template <class Archive, unsigned size>
+template <class Archive, std::size_t size>
 inline void save(
     Archive & ar,
     std::bitset<size> const & t,
@@ -39,7 +40,7 @@
     ar << BOOST_SERIALIZATION_NVP( bits );
 }
 
-template <class Archive, unsigned size>
+template <class Archive, std::size_t size>
 inline void load(
     Archive & ar,
     std::bitset<size> & t,
@@ -50,7 +51,7 @@
     t = std::bitset<size>(bits);
 }
 
-template <class Archive, unsigned size>
+template <class Archive, std::size_t size>
 inline void serialize(
     Archive & ar,
     std::bitset<size> & t,
@@ -64,7 +65,7 @@
 // also, tracking would be hard to implement since, we're
 // serialization a representation of the data rather than
 // the data itself.
-template <unsigned size>
+template <std::size_t size>
 struct tracking_level<std::bitset<size> >
     : mpl::int_<track_never> {} ;
 
@@ -72,4 +73,3 @@
 } //boost
 
 #endif // BOOST_SERIALIZATION_BITSET_HPP
-


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