Predefined macros for rvalue reference support?

Peter Dimov
Mon Apr 30 18:10:00 GMT 2007

Benjamin Kosnik wrote:
> 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 don't need fine-grained control. I just need a way to detect rvalue 
reference support. If -std=c++0x guarantees rvalue reference support, I can 
use __GXX_EXPERIMENTAL_CXX0X__ for that. 

More information about the Libstdc++ mailing list