Commit 4db6c2f5 by Jonathan Wakely Committed by Jonathan Wakely

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
parent 9ea65ca6
2015-06-22 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/64657
* include/bits/stl_uninitialized.h
(__uninitialized_copy::__uninit_copy): Cast expression to void.
2015-06-17 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/55409
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment