aboutsummaryrefslogtreecommitdiff
path: root/system/include/libcxx/numeric
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/libcxx/numeric')
-rw-r--r--system/include/libcxx/numeric4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/include/libcxx/numeric b/system/include/libcxx/numeric
index c201a5f5..e520c8e0 100644
--- a/system/include/libcxx/numeric
+++ b/system/include/libcxx/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;