From 4db6c2f585053daef2fc24a72518030a85d05e1e Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 22 Jun 2015 16:09:14 +0100 Subject: [PATCH] re PR libstdc++/64657 (Support iterators with overloaded operator-comma) PR libstdc++/64657 * include/bits/stl_uninitialized.h (__uninitialized_copy::__uninit_copy): Cast expression to void. From-SVN: r224736 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/include/bits/stl_uninitialized.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 345bf94..290af68 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-06-22 Jonathan Wakely + + PR libstdc++/64657 + * include/bits/stl_uninitialized.h + (__uninitialized_copy::__uninit_copy): Cast expression to void. + 2015-06-17 Jonathan Wakely PR libstdc++/55409 diff --git a/libstdc++-v3/include/bits/stl_uninitialized.h b/libstdc++-v3/include/bits/stl_uninitialized.h index 715cb58..045bdd7 100644 --- a/libstdc++-v3/include/bits/stl_uninitialized.h +++ b/libstdc++-v3/include/bits/stl_uninitialized.h @@ -71,7 +71,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _ForwardIterator __cur = __result; __try { - for (; __first != __last; ++__first, ++__cur) + for (; __first != __last; ++__first, (void)++__cur) std::_Construct(std::__addressof(*__cur), *__first); return __cur; } -- 2.7.4