2016-07-15 Jonathan Wakely <jwakely@redhat.com>
+ * include/bits/stl_algo.h (for_each): Remove redundant _GLIBCXX_MOVE
+ and adjust comment.
+
PR c++/58796
* libsupc++/pbase_type_info.cc (__pbase_type_info::__do_catch): Make
nullptr match handlers of pointer type.
* @param __first An input iterator.
* @param __last An input iterator.
* @param __f A unary function object.
- * @return @p __f (std::move(@p __f) in C++0x).
+ * @return @p __f
*
* Applies the function object @p __f to each element in the range
* @p [first,last). @p __f must not modify the order of the sequence.
__glibcxx_requires_valid_range(__first, __last);
for (; __first != __last; ++__first)
__f(*__first);
- return _GLIBCXX_MOVE(__f);
+ return __f; // N.B. [alg.foreach] says std::move(f) but it's redundant.
}
/**