[Bug libstdc++/57010] [c++0x] priority_queue<>::pop() calls self-move-assignment operator

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Apr 20 10:50:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57010

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|glisse at gcc dot gnu.org   |

--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> 2013-04-20 10:49:59 UTC ---
[Gah, firefox has dumb key bindings that send unfinished messages...]

(In reply to comment #3)
> Is that the same as:
> 
>       if (first != --__last)
>         std::__pop_heap(__first, __last, __last);

?

it would save one or two additions.



More information about the Gcc-bugs mailing list