Skip to content

Commit 492f9a8

Browse files
Revert the library code change of (#53), not touching the unit tests
1 parent 2822004 commit 492f9a8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

include/boost/pool/simple_segregated_storage.hpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -328,19 +328,6 @@ void * simple_segregated_storage<SizeType>::try_malloc_n(
328328
void * & start, size_type n, const size_type partition_size)
329329
{
330330
void * iter = nextof(start);
331-
if (n == 1)
332-
{
333-
void * next = nextof(iter);
334-
if (next != static_cast<char *>(iter) + partition_size)
335-
{
336-
start = iter;
337-
return 0;
338-
}
339-
else
340-
{
341-
return iter;
342-
}
343-
}
344331
while (--n != 0)
345332
{
346333
void * next = nextof(iter);

0 commit comments

Comments
 (0)