[cfe-dev] How to query "multi-declarator auto" support?

Michel Morin mimomorin at gmail.com
Fri Oct 28 10:21:54 PDT 2011


Jared Grubb wrote:
>> * Does __has_feature(cxx_generalized_initializers) mean that we can safely
>>  write `#include <initializer_list>` even with a C++03 standard library?
>
> For this, you could probably use "__has_include(<initializer_list>)" to
> really get what you're looking for, no?

Agreed. To check the existence of the header,
"__has_include(<initializer_list>)" should be used. Thanks!

Regards,
Michel




More information about the cfe-dev mailing list