Bug in GCC 4.5 c++0x version of std::list<T>::merge(&&)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux