forked from boostorg/container
Corrected strict aliasing error in multiallocation_chain
[SVN r80514]
This commit is contained in:
1 parent
22a18c25fb
commit
1582b2086d
5 files changed
+50
-37
No files matched your search
@@ -247,8 +247,7 @@ struct node_alloc_holder
|
||||
Node *p = 0;
|
||||
BOOST_TRY{
|
||||
for(difference_type i = 0; i < n; ++i, ++beg, --constructed){
|
||||
p = container_detail::to_raw_pointer(mem.front());
|
||||
mem.pop_front();
|
||||
p = container_detail::to_raw_pointer(mem.pop_front());
|
||||
//This can throw
|
||||
constructed = 0;
|
||||
boost::container::construct_in_place(this->node_alloc(), container_detail::addressof(p->m_data), beg);
|
||||
|
||||
Reference in new issue
Block a user