Changeset 44469


Ignore:
Timestamp:
Apr 16, 2008, 5:36:16 PM (11 years ago)
Author:
Daniel James
Message:

C++-0x constructor for node.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp

    r44468 r44469  
    109109            {
    110110            public:
     111#if defined(BOOST_HAS_RVALUE_REFS) && defined(BOOST_HAS_VARIADIC_TMPL)
     112                template <typename... Args>
     113                node(Args&&... args)
     114                    : node_base(), value_(std::forward<Args>(args)...) {}
     115#else
    111116                node(value_type const& v) : node_base(), value_(v) {}
     117#endif
    112118
    113119                value_type value_;
Note: See TracChangeset for help on using the changeset viewer.