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


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