Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53812 - sandbox/monotonic/boost/monotonic
From: christian.schladetsch_at_[hidden]
Date: 2009-06-12 04:14:01


Author: cschladetsch
Date: 2009-06-12 04:14:00 EDT (Fri, 12 Jun 2009)
New Revision: 53812
URL: http://svn.boost.org/trac/boost/changeset/53812

Log:
now using std::limits for max of size_t

Text files modified:
   sandbox/monotonic/boost/monotonic/storage_base.h | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/monotonic/boost/monotonic/storage_base.h
==============================================================================
--- sandbox/monotonic/boost/monotonic/storage_base.h (original)
+++ sandbox/monotonic/boost/monotonic/storage_base.h 2009-06-12 04:14:00 EDT (Fri, 12 Jun 2009)
@@ -5,7 +5,7 @@
 
 #pragma once
 
-#include <boost/cstdint.hpp>
+#include <limits>
 #include <boost/monotonic/storage.h>
 
 namespace boost
@@ -29,7 +29,7 @@
 
                         size_t max_size() const
                         {
- return INT_MAX;
+ return std::numeric_limits<std::size_t>::max();
                         }
                 };
         }


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