diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-08-22 18:02:34 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-08-22 18:02:34 +0000 |
commit | 1c44f51de7392597b673b18f1b373810414816fd (patch) | |
tree | 90eec392177ff0ce5782ab47daf18e30c3f5f9a7 /include/numeric | |
parent | 8a1df3ca0cbb3d30125c0e011219923c8dc15e1d (diff) | |
download | external_libcxx-1c44f51de7392597b673b18f1b373810414816fd.tar.gz external_libcxx-1c44f51de7392597b673b18f1b373810414816fd.tar.bz2 external_libcxx-1c44f51de7392597b673b18f1b373810414816fd.zip |
Zhihao Yuan noted that a move assignment operation was missing from std::adjacent_difference. Fixed.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@189036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/numeric')
-rw-r--r-- | include/numeric | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/numeric b/include/numeric index c201a5f57..e520c8e0d 100644 --- a/include/numeric +++ b/include/numeric @@ -157,7 +157,7 @@ adjacent_difference(_InputIterator __first, _InputIterator __last, _OutputIterat { typename iterator_traits<_InputIterator>::value_type __t2(*__first); *__result = __t2 - __t1; - __t1 = __t2; + __t1 = _VSTD::move(__t2); } } return __result; @@ -177,7 +177,7 @@ adjacent_difference(_InputIterator __first, _InputIterator __last, _OutputIterat { typename iterator_traits<_InputIterator>::value_type __t2(*__first); *__result = __binary_op(__t2, __t1); - __t1 = __t2; + __t1 = _VSTD::move(__t2); } } return __result; |