Predefined macros for rvalue reference support?

Benjamin Kosnik bkoz@redhat.com
Mon Apr 30 13:57:00 GMT 2007


> #ifdef __GXX_EXPERIMENTAL_CXX0X__

This is what we are currently using to indicate C++0x mode. Ie, 
-std=c++0x/__GXX_EXPERIMENTAL_CXX0X__.

There is no fine-grained control just for rvalue references, a la 
-fexceptions/__EXCEPTIONS.

I think you'll just have to come up with a defined macro for rvalue 
reference use, and enable it on a case-by-case basis. Sorry.

-benjamin



More information about the Libstdc++ mailing list