diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2011-07-01 19:24:36 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2011-07-01 19:24:36 +0000 |
| commit | 5a33687da07cb8ffc68ef5065ed46bab5c4d6555 (patch) | |
| tree | a040ca6f46310d29afc2a8f8b3337eb6c692a8eb /libcxx/include/set | |
| parent | 68b0e8456e7934b97ffb22b07fdde705abd33fd1 (diff) | |
| download | bcm5719-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/set')
| -rw-r--r-- | libcxx/include/set | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libcxx/include/set b/libcxx/include/set index 717703f191d..9248fd79b24 100644 --- a/libcxx/include/set +++ b/libcxx/include/set @@ -408,6 +408,13 @@ public: insert(__s.begin(), __s.end()); } + _LIBCPP_INLINE_VISIBILITY + set& operator=(const set& __s) + { + __tree_ = __s.__tree_; + return *this; + } + #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES _LIBCPP_INLINE_VISIBILITY set(set&& __s) @@ -738,6 +745,13 @@ public: insert(__s.begin(), __s.end()); } + _LIBCPP_INLINE_VISIBILITY + multiset& operator=(const multiset& __s) + { + __tree_ = __s.__tree_; + return *this; + } + #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES _LIBCPP_INLINE_VISIBILITY multiset(multiset&& __s) |

