mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 20:04:29 +02:00
Remove some code that doesn't even make it past preprocessing, I should have removed it when I wrote separate allocation code for C++0x compilers.
[SVN r45263]
This commit is contained in:
@@ -304,27 +304,6 @@ namespace boost {
|
|||||||
value_constructed_ = true;
|
value_constructed_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(BOOST_HAS_RVALUE_REFS) && defined(BOOST_HAS_VARIADIC_TMPL)
|
|
||||||
template <typename... Args>
|
|
||||||
void construct(Args&&... args)
|
|
||||||
{
|
|
||||||
BOOST_ASSERT(!node_);
|
|
||||||
value_constructed_ = false;
|
|
||||||
node_base_constructed_ = false;
|
|
||||||
|
|
||||||
node_ = allocators_.node_alloc_.allocate(1);
|
|
||||||
|
|
||||||
allocators_.node_base_alloc_.construct(
|
|
||||||
allocators_.node_base_alloc_.address(*node_),
|
|
||||||
node_base());
|
|
||||||
node_base_constructed_ = true;
|
|
||||||
|
|
||||||
allocators_.value_alloc_.construct(
|
|
||||||
allocators_.value_alloc_.address(node_->value_), std::forward<Args>(args)...);
|
|
||||||
value_constructed_ = true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
node_ptr get() const
|
node_ptr get() const
|
||||||
{
|
{
|
||||||
BOOST_ASSERT(node_);
|
BOOST_ASSERT(node_);
|
||||||
|
Reference in New Issue
Block a user