mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 22:14:26 +02:00
Trivial fix for empty ranges in node_alloc_holder
[SVN r84902]
This commit is contained in:
@@ -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]
|
||||
|
||||
|
@@ -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())); }
|
||||
|
Reference in New Issue
Block a user