tnintemann / rpms / boost

Forked from rpms/boost 3 years ago
Clone

Blame SOURCES/boost-1.54.0-pool-max_chunks_shadow.patch

5dffee
diff -up ./boost/pool/pool.hpp~ ./boost/pool/pool.hpp
5dffee
--- ./boost/pool/pool.hpp~	2013-08-21 17:49:56.023296922 +0200
5dffee
+++ ./boost/pool/pool.hpp	2013-08-22 11:38:01.133912638 +0200
5dffee
@@ -361,9 +361,7 @@ class pool: protected simple_segregated_
5dffee
     { //! Calculated maximum number of memory chunks that can be allocated in a single call by this Pool.
5dffee
       size_type partition_size = alloc_size();
5dffee
       size_type POD_size = math::static_lcm<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type);
5dffee
-      size_type max_chunks = (std::numeric_limits<size_type>::max() - POD_size) / alloc_size();
5dffee
-    
5dffee
-      return max_chunks;
5dffee
+      return (std::numeric_limits<size_type>::max() - POD_size) / alloc_size();
5dffee
     }
5dffee
 
5dffee
     static void * & nextof(void * const ptr)