mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 22:44:26 +02:00
Trivial fix for empty ranges in node_alloc_holder
[SVN r84900]
This commit is contained in:
@@ -229,6 +229,7 @@ struct node_alloc_holder
|
|||||||
void allocate_many_and_construct
|
void allocate_many_and_construct
|
||||||
(FwdIterator beg, difference_type n, Inserter inserter)
|
(FwdIterator beg, difference_type n, Inserter inserter)
|
||||||
{
|
{
|
||||||
|
if(n){
|
||||||
/*
|
/*
|
||||||
NodePtr p = this->allocate_one();
|
NodePtr p = this->allocate_one();
|
||||||
Deallocator node_deallocator(p, this->node_alloc());
|
Deallocator node_deallocator(p, this->node_alloc());
|
||||||
@@ -272,6 +273,7 @@ struct node_alloc_holder
|
|||||||
}
|
}
|
||||||
BOOST_CATCH_END
|
BOOST_CATCH_END
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void clear(allocator_v1)
|
void clear(allocator_v1)
|
||||||
{ this->icont().clear_and_dispose(Destroyer(this->node_alloc())); }
|
{ this->icont().clear_and_dispose(Destroyer(this->node_alloc())); }
|
||||||
|
Reference in New Issue
Block a user