Ticket #6784: emplace_args.patch

File emplace_args.patch, 1.6 KB (added by Luke Elliott <lukester_null@…>, 11 years ago)

Possible fix.

  • unordered/detail/emplace_args.hpp

    diff -aur boost.orig/unordered/detail/emplace_args.hpp boost/unordered/detail/emplace_args.hpp
    old new  
    160160    //
    161161    // Used for piecewise construction.
    162162
    163 #if !BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590)
     163#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 0x5120)
    164164
    165165#define BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(n, namespace_)                 \
    166166    template<typename T>                                                    \
     
    207207        new ((void*) ptr) T();
    208208    }
    209209
    210 #define BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE_IMPL(z, n, _)                  \
     210#define BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE_IMPL(z, n, namespace_)         \
    211211    template<typename T, BOOST_PP_ENUM_PARAMS_Z(z, n, typename A)>          \
    212212    void construct_from_tuple_impl(                                         \
    213213            boost::unordered::detail::length<n>, T* ptr,                    \
     
    218218        );                                                                  \
    219219    }
    220220
    221 #define BOOST_UNORDERED_GET_TUPLE_ARG(z, n, _)                              \
     221#define BOOST_UNORDERED_GET_TUPLE_ARG(z, n, namespace_)                     \
    222222    boost::get<n>(x)
    223223
    224224    BOOST_PP_REPEAT_FROM_TO(1, 10,                                          \
    225         BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE_IMPL, _)
     225        BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE_IMPL, boost)
    226226
    227227    template <typename T, typename Tuple>
    228228    void construct_from_tuple(T* ptr, Tuple const& x)