aboutsummaryrefslogtreecommitdiff
path: root/include/memory
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/memory
parentfbd326037ffe8b31f74ce56deb05b6432b26665c (diff)
downloadsrc-c7f918d0681828afdbddfdcc354b6f3dfc2a7b68.tar.gz
src-c7f918d0681828afdbddfdcc354b6f3dfc2a7b68.zip
Import new libc++ to vendor branch.vendor/libc++/r174563
Notes
Notes: svn path=/vendor/libc++/dist/; revision=246468 svn path=/vendor/libc++/r174563/; revision=246469; tag=vendor/libc++/r174563
Diffstat (limited to 'include/memory')
-rw-r--r--include/memory5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/memory b/include/memory
index 4c12ad93ab86..f80d699fc0d4 100644
--- a/include/memory
+++ b/include/memory
@@ -1571,7 +1571,10 @@ struct _LIBCPP_VISIBLE allocator_traits
__construct_backward(allocator_type& __a, _Ptr __begin1, _Ptr __end1, _Ptr& __end2)
{
while (__end1 != __begin1)
- construct(__a, _VSTD::__to_raw_pointer(--__end2), _VSTD::move_if_noexcept(*--__end1));
+ {
+ construct(__a, _VSTD::__to_raw_pointer(__end2-1), _VSTD::move_if_noexcept(*--__end1));
+ --__end2;
+ }
}
template <class _Tp>