This is the mail archive of the gcc-bugs@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]

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



------- 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


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