|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2008-04-16 13:36:17
Author: danieljames
Date: 2008-04-16 13:36:16 EDT (Wed, 16 Apr 2008)
New Revision: 44469
URL: http://svn.boost.org/trac/boost/changeset/44469
Log:
C++-0x constructor for node.
Text files modified:
branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp
==============================================================================
--- branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp (original)
+++ branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp 2008-04-16 13:36:16 EDT (Wed, 16 Apr 2008)
@@ -108,7 +108,13 @@
struct node : node_base
{
public:
+#if defined(BOOST_HAS_RVALUE_REFS) && defined(BOOST_HAS_VARIADIC_TMPL)
+ template <typename... Args>
+ node(Args&&... args)
+ : node_base(), value_(std::forward<Args>(args)...) {}
+#else
node(value_type const& v) : node_base(), value_(v) {}
+#endif
value_type value_;
};
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