|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85016 - trunk/boost/multi_index/detail
From: joaquin_at_[hidden]
Date: 2013-07-12 14:17:29
Author: joaquin
Date: 2013-07-12 14:17:29 EDT (Fri, 12 Jul 2013)
New Revision: 85016
URL: http://svn.boost.org/trac/boost/changeset/85016
Log:
properly called move placement new
Text files modified:
trunk/boost/multi_index/detail/index_base.hpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
Modified: trunk/boost/multi_index/detail/index_base.hpp
==============================================================================
--- trunk/boost/multi_index/detail/index_base.hpp Fri Jul 12 13:49:20 2013 (r85015)
+++ trunk/boost/multi_index/detail/index_base.hpp 2013-07-12 14:17:29 EDT (Fri, 12 Jul 2013) (r85016)
@@ -128,8 +128,7 @@
node_type* insert_(const value_type& v,node_type*,node_type* x,rvalue_tag)
{
- boost::detail::allocator::construct(
- &x->value(),boost::move(const_cast<value_type&>(v)));
+ new (&x->value()) value_type(boost::move(const_cast<value_type&>(v)));
return x;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk