forked from boostorg/unordered
Merge pull request #117 from Flamefire/clang3_8_compat
Fix compilation on Clang < 3.8
This commit is contained in:
@ -1416,8 +1416,6 @@ namespace boost {
|
||||
{
|
||||
node_constructor<Alloc> a(alloc);
|
||||
a.create_node();
|
||||
#if !(BOOST_COMP_CLANG && BOOST_COMP_CLANG < BOOST_VERSION_NUMBER(3, 8, 0) && \
|
||||
defined(BOOST_LIBSTDCXX11))
|
||||
|
||||
typedef typename boost::allocator_value_type<Alloc>::type node;
|
||||
typedef typename node::value_type value_type;
|
||||
@ -1426,6 +1424,8 @@ namespace boost {
|
||||
|
||||
value_allocator val_alloc(alloc);
|
||||
|
||||
#if !(BOOST_COMP_CLANG && BOOST_COMP_CLANG < BOOST_VERSION_NUMBER(3, 8, 0) && \
|
||||
defined(BOOST_LIBSTDCXX11))
|
||||
boost::allocator_construct(val_alloc, a.node_->value_ptr(),
|
||||
std::piecewise_construct,
|
||||
std::forward_as_tuple(boost::forward<Key>(k)),
|
||||
|
Reference in New Issue
Block a user