Bug in GCC 4.5 c++0x version of std::list<T>::merge(&&)?
Benjamin Redelings I
benjamin_redelings@ncsu.edu
Wed Dec 2 18:17:00 GMT 2009
Hi,
Some of my code compiles without -std=c++0x, but not with it. It
seems to be the result of the following snippet:
list<_Tp, _Alloc>::
#ifdef __GXX_EXPERIMENTAL_CXX0X__
merge(list&& __x)
#else
merge(list& __x)
#endif
For c++0x, don't we need both versions, now that the standard has been
modified so that rvalue references cannot bind to lvalue references?
-BenRI
More information about the Gcc-help
mailing list