This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove redundant std::move in std::for_each


2016-07-15 21:53 GMT+02:00 Jonathan Wakely <jwakely@redhat.com>:
> Returning a parameter will try to move anyway, so using std::move here
> is redundant (and clang even warns about it being redundant).
>
>         * include/bits/stl_algo.h (for_each): Remove redundant _GLIBCXX_MOVE
>         and adjust comment.

Actually I think this should also be reported as an LWG issue.

- Daniel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]