diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2015-10-25 18:58:07 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2015-10-25 18:58:07 +0000 |
commit | 332ab91947eabf73bc8feabeff5fdcf71659b245 (patch) | |
tree | 1b7afcdba1da122eded8a2dcd212763e32198394 /include/memory | |
parent | dbef2bb1d0453026b49af6d55aa99bcec776ff35 (diff) |
Fix LWG#2127: Move-construction with raw_storage_iterator.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@251247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/memory')
-rw-r--r-- | include/memory | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/memory b/include/memory index 4ed33084d..97ad44036 100644 --- a/include/memory +++ b/include/memory @@ -1909,6 +1909,10 @@ public: _LIBCPP_INLINE_VISIBILITY raw_storage_iterator& operator*() {return *this;} _LIBCPP_INLINE_VISIBILITY raw_storage_iterator& operator=(const _Tp& __element) {::new(&*__x_) _Tp(__element); return *this;} +#if _LIBCPP_STD_VER >= 14 + _LIBCPP_INLINE_VISIBILITY raw_storage_iterator& operator=(_Tp&& __element) + {::new(&*__x_) _Tp(_VSTD::move(__element)); return *this;} +#endif _LIBCPP_INLINE_VISIBILITY raw_storage_iterator& operator++() {++__x_; return *this;} _LIBCPP_INLINE_VISIBILITY raw_storage_iterator operator++(int) {raw_storage_iterator __t(*this); ++__x_; return __t;} |