https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108714

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Not a bug, the standard is clear about this:

[Note 2 : Unless otherwise specified, algorithms that take function objects as
arguments can copy those function objects freely. If object identity is
important, a wrapper class that points to a non-copied implementation object
such as reference_wrapper<T> (22.10.6), or some equivalent solution, can be
used. — end note]

Reply via email to