Trivial fix for empty ranges in node_alloc_holder

[SVN r84902]
This commit is contained in:
Ion Gaztañaga
2013-06-24 19:13:16 +00:00
parent b556fead74
commit e7b1fde968
2 changed files with 43 additions and 40 deletions

View File

@@ -698,7 +698,8 @@ use [*Boost.Container]? There are several reasons for that:
[@https://svn.boost.org/trac/boost/ticket/7969 #7969],
[@https://svn.boost.org/trac/boost/ticket/8118 #8118],
[@https://svn.boost.org/trac/boost/ticket/8294 #8294],
[@https://svn.boost.org/trac/boost/ticket/8553 #8553].
[@https://svn.boost.org/trac/boost/ticket/8553 #8553],
[@https://svn.boost.org/trac/boost/ticket/8724 #8724].
[endsect]

View File

@@ -229,6 +229,7 @@ struct node_alloc_holder
void allocate_many_and_construct
(FwdIterator beg, difference_type n, Inserter inserter)
{
if(n){
/*
NodePtr p = this->allocate_one();
Deallocator node_deallocator(p, this->node_alloc());
@@ -272,6 +273,7 @@ struct node_alloc_holder
}
BOOST_CATCH_END
}
}
void clear(allocator_v1)
{ this->icont().clear_and_dispose(Destroyer(this->node_alloc())); }