From 0b16e8e05a62c4058d738e66cc71032bafe8dc51 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Mon, 22 Dec 2014 19:10:11 +0000 Subject: [PATCH] Fix PR22000. __bit_iterator::move_backwards. Also make a note that __bit_iterator is quite underrepresented in the libc++ tests suite. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@224723 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__bit_reference | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/__bit_reference b/include/__bit_reference index d9ebfbe5..4938f446 100644 --- a/include/__bit_reference +++ b/include/__bit_reference @@ -705,7 +705,7 @@ inline _LIBCPP_INLINE_VISIBILITY __bit_iterator<_Cp, false> move_backward(__bit_iterator<_Cp, _IsConst> __first, __bit_iterator<_Cp, _IsConst> __last, __bit_iterator<_Cp, false> __result) { - return _VSTD::copy(__first, __last, __result); + return _VSTD::copy_backward(__first, __last, __result); } // swap_ranges