Subject: [Boost-bugs] [Boost C++ Libraries] #6867: Unclear behavior of parameter 'max_size'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-04 20:41:33
#6867: Unclear behavior of parameter 'max_size'
------------------------------+---------------------------------------------
Reporter: edupuis | Owner: edupuis
Type: Bugs | Status: new
Milestone: To Be Determined | Component: pool
Version: Boost 1.49.0 | Severity: Cosmetic
Keywords: |
------------------------------+---------------------------------------------
When constructing a pool, a 'max_size' parameter can be given. If non
zero, the documentation states that the pool will not allow more than
'max_chunks' at once.
However, this restriction is not taken into account in function
ordered_malloc(n) :
{{{
boost::pool<> p(sizeof(int), 16, 16);
void *ptr = p.ordered_malloc(32); // Succeeds
}}}
Either the documentation should be precised, either the illustrated
allocation should fail.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6867> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC