summaryrefslogtreecommitdiff
path: root/include/algorithm
diff options
context:
space:
mode:
authorDavid Chisnall <theraven@FreeBSD.org>2013-02-07 13:09:19 +0000
committerDavid Chisnall <theraven@FreeBSD.org>2013-02-07 13:09:19 +0000
commitc7f918d0681828afdbddfdcc354b6f3dfc2a7b68 (patch)
treed1f057460d329356b56f67bf5740b7393c925844 /include/algorithm
parentfbd326037ffe8b31f74ce56deb05b6432b26665c (diff)
Notes
Diffstat (limited to 'include/algorithm')
-rw-r--r--include/algorithm4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/algorithm b/include/algorithm
index 0f6107bdde05..e24f9793c50b 100644
--- a/include/algorithm
+++ b/include/algorithm
@@ -1528,10 +1528,10 @@ copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result)
// copy_backward
-template <class _InputIterator, class _OutputIterator>
+template <class _BidirectionalIterator, class _OutputIterator>
inline _LIBCPP_INLINE_VISIBILITY
_OutputIterator
-__copy_backward(_InputIterator __first, _InputIterator __last, _OutputIterator __result)
+__copy_backward(_BidirectionalIterator __first, _BidirectionalIterator __last, _OutputIterator __result)
{
while (__first != __last)
*--__result = *--__last;