[Bug libstdc++/33930] [c++0x] ambiguous overload in std::stack::push() when using --std=cxx0x

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Wed Oct 31 22:30:00 GMT 2007



------- Comment #8 from pcarlini at suse dot de  2007-10-31 22:30 -------
Update: on the LWG reflector Howard Hinnant replied that likely this is a bug
in the G++ implementation of rvalue references (I could not believe that!): the
conversion from int* to const int* leads to a temporary which then should bind
safely to the rvalue reference overload. Orthogonally, people apparently like
the idea of changing the container adaptors per Comment #7, therefore short
term our library can avoid the issue.


-- 


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



More information about the Gcc-bugs mailing list