This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bug in GCC 4.5 c++0x version of std::list<T>::merge(&&)?
- From: Benjamin Redelings I <benjamin_redelings at ncsu dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 07 Dec 2009 22:39:19 -0500
- Subject: Bug in GCC 4.5 c++0x version of std::list<T>::merge(&&)?
Hi,
It seems that many current uses of list<T>::merge( ) fail to compile
with -std=c++0x, but I don't see a bug in bugzilla for this. Itseems to
result from:
list<_Tp, _Alloc>::
#ifdef __GXX_EXPERIMENTAL_CXX0X__
merge(list&& __x)
#else
merge(list& __x)
#endif
For c++0x, don't we need BOTH versions, since lvalues no longer bind to
rvalue references, or am I missing something?
-BenRI