From 9ff3203fccd7a496fd1ee16ac94e380d768d6177 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 22 Aug 2013 18:02:34 +0000 Subject: Zhihao Yuan noted that a move assignment operation was missing from std::adjacent_difference. Fixed. llvm-svn: 189036 --- libcxx/include/numeric | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcxx/include/numeric') diff --git a/libcxx/include/numeric b/libcxx/include/numeric index c201a5f57cb..e520c8e0d75 100644 --- a/libcxx/include/numeric +++ b/libcxx/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; -- cgit v1.2.3