From 799a1c1760d6ee513d6a6e62f635d1878488575a Mon Sep 17 00:00:00 2001 From: Arkadiy Vertleyb Date: Sun, 25 Sep 2005 23:04:45 +0000 Subject: [PATCH] size_t->std::size_t [SVN r31115] --- include/boost/typeof/int_encoding.hpp | 18 +++++++++--------- include/boost/typeof/std/bitset.hpp | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/boost/typeof/int_encoding.hpp b/include/boost/typeof/int_encoding.hpp index 667c683..a708eaa 100755 --- a/include/boost/typeof/int_encoding.hpp +++ b/include/boost/typeof/int_encoding.hpp @@ -37,13 +37,13 @@ namespace boost{namespace type_of{ ////////////////////////// - template + template struct pack { enum {value = (n + 1) * 2 + (Overflow ? 1 : 0)}; }; - template + template struct unpack { enum {value = (m / 2) - 1}; @@ -52,14 +52,14 @@ namespace boost{namespace type_of{ //////////////////////////////// - template= 0x3fffffff)> + template= 0x3fffffff)> struct encode_size_t : push_back< V, boost::mpl::size_t::value> > {}; - template + template struct encode_size_t : push_back::value> >::type, @@ -73,22 +73,22 @@ namespace boost{namespace type_of{ /////////////////////////// - template + template struct decode_size_t; - template + template struct decode_size_t { enum {value = n}; typedef Iter iter; }; - template + template struct decode_size_t { enum {m = Iter::type::value}; - enum {value = (size_t)m * 0x3ffffffe + n}; + enum {value = (std::size_t)m * 0x3ffffffe + n}; typedef typename Iter::next iter; }; @@ -103,7 +103,7 @@ namespace boost{namespace type_of{ typedef typename Iter::next nextpos; - static const T value = (T)(size_t)decode_size_t::value; + static const T value = (T)(std::size_t)decode_size_t::value; typedef typename decode_size_t::iter iter; }; diff --git a/include/boost/typeof/std/bitset.hpp b/include/boost/typeof/std/bitset.hpp index 014a114..31b0a1e 100755 --- a/include/boost/typeof/std/bitset.hpp +++ b/include/boost/typeof/std/bitset.hpp @@ -12,6 +12,6 @@ #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() -BOOST_TYPEOF_REGISTER_TEMPLATE(std::bitset, (size_t)) +BOOST_TYPEOF_REGISTER_TEMPLATE(std::bitset, (BOOST_TYPEOF_INTEGRAL(std::size_t))) #endif//BOOST_TYPEOF_STD_bitset_hpp_INCLUDED