summaryrefslogtreecommitdiffstats
path: root/libcxx/include/unordered_set
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-07-01 19:24:36 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-07-01 19:24:36 +0000
commit5a33687da07cb8ffc68ef5065ed46bab5c4d6555 (patch)
treea040ca6f46310d29afc2a8f8b3337eb6c692a8eb /libcxx/include/unordered_set
parent68b0e8456e7934b97ffb22b07fdde705abd33fd1 (diff)
downloadbcm5719-llvm-5a33687da07cb8ffc68ef5065ed46bab5c4d6555.tar.gz
bcm5719-llvm-5a33687da07cb8ffc68ef5065ed46bab5c4d6555.zip
Correct for new rules regarding implicitly deleted special members. http://llvm.org/bugs/show_bug.cgi?id=10191
llvm-svn: 134248
Diffstat (limited to 'libcxx/include/unordered_set')
-rw-r--r--libcxx/include/unordered_set14
1 files changed, 12 insertions, 2 deletions
diff --git a/libcxx/include/unordered_set b/libcxx/include/unordered_set
index 2798a618a83..2ef54334804 100644
--- a/libcxx/include/unordered_set
+++ b/libcxx/include/unordered_set
@@ -373,7 +373,12 @@ public:
const hasher& __hf, const key_equal& __eql,
const allocator_type& __a);
// ~unordered_set() = default;
- // unordered_set& operator=(const unordered_set& __u) = default;
+ _LIBCPP_INLINE_VISIBILITY
+ unordered_set& operator=(const unordered_set& __u)
+ {
+ __table_ = __u.__table_;
+ return *this;
+ }
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
unordered_set& operator=(unordered_set&& __u)
_NOEXCEPT_(is_nothrow_move_assignable<__table>::value);
@@ -766,7 +771,12 @@ public:
const hasher& __hf, const key_equal& __eql,
const allocator_type& __a);
// ~unordered_multiset() = default;
- // unordered_multiset& operator=(const unordered_multiset& __u) = default;
+ _LIBCPP_INLINE_VISIBILITY
+ unordered_multiset& operator=(const unordered_multiset& __u)
+ {
+ __table_ = __u.__table_;
+ return *this;
+ }
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
unordered_multiset& operator=(unordered_multiset&& __u)
_NOEXCEPT_(is_nothrow_move_assignable<__table>::value);
OpenPOWER on IntegriCloud