Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49295 - trunk/boost/archive/iterators
From: ramey_at_[hidden]
Date: 2008-10-12 15:32:57


Author: ramey
Date: 2008-10-12 15:32:57 EDT (Sun, 12 Oct 2008)
New Revision: 49295
URL: http://svn.boost.org/trac/boost/changeset/49295

Log:
avoid waring under gcc
Text files modified:
   trunk/boost/archive/iterators/base64_from_binary.hpp | 9 ++++++++-
   1 files changed, 8 insertions(+), 1 deletions(-)

Modified: trunk/boost/archive/iterators/base64_from_binary.hpp
==============================================================================
--- trunk/boost/archive/iterators/base64_from_binary.hpp (original)
+++ trunk/boost/archive/iterators/base64_from_binary.hpp 2008-10-12 15:32:57 EDT (Sun, 12 Oct 2008)
@@ -18,7 +18,14 @@
 
 #include <cassert>
 
+#include <cstddef> // size_t
 #include <boost/config.hpp> // for BOOST_DEDUCED_TYPENAME
+#if defined(BOOST_NO_STDC_NAMESPACE)
+namespace std{
+ using ::size_t;
+} // namespace std
+#endif
+
 #include <boost/serialization/pfto.hpp>
 
 #include <boost/iterator/transform_iterator.hpp>
@@ -43,7 +50,7 @@
             "0123456789"
             "+/";
         assert(t < 64);
- return lookup_table[t];
+ return lookup_table[static_cast<size_t>(t)];
     }
 };
 


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