[cfe-dev] auto and decltype availability
clattner at apple.com
Fri Jul 15 11:38:01 PDT 2011
On Jul 15, 2011, at 9:11 AM, Michael Price wrote:
> Does anyone know which released version first had the auto and decltype features 'turned on'? And generally speaking, is there an easy way to determine this for any given C++0x feature?
> For some background, I'm working on a series of C++0x presentations at the company I work for, and at the end of every presentation I have a chart that shows the availability of the features I discussed that day. Currently we are not using clang, but I have an entry for it because I want to show that clang is trying to keeping pace with GCC and surpassing IBM XL C/C++ and Sun Studio.
We recommend that people write code that uses __has_feature to check for a feature, not compare against a compiler version number. These are documented here:
More information about the cfe-dev