$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r54244 - sandbox/monotonic/boost/monotonic
From: christian.schladetsch_at_[hidden]
Date: 2009-06-22 19:35:57
Author: cschladetsch
Date: 2009-06-22 19:35:57 EDT (Mon, 22 Jun 2009)
New Revision: 54244
URL: http://svn.boost.org/trac/boost/changeset/54244
Log:
fix for storage::from_heap to not allocate if MinHeapIncrement is 0
Text files modified:
sandbox/monotonic/boost/monotonic/storage.hpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Modified: sandbox/monotonic/boost/monotonic/storage.hpp
==============================================================================
--- sandbox/monotonic/boost/monotonic/storage.hpp (original)
+++ sandbox/monotonic/boost/monotonic/storage.hpp 2009-06-22 19:35:57 EDT (Mon, 22 Jun 2009)
@@ -112,6 +112,8 @@
void *from_heap(size_t num_bytes, size_t alignment)
{
+ if (MinHeapIncrement == 0)
+ return 0;
if (!chain.empty())
{
if (void *ptr = chain.front().allocate(num_bytes, alignment))