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