Richard Smith wrote: > On Tue, Feb 21, 2012 at 8:38 PM, Michel Morin <[email protected]> wrote: >> Is there any way to detect this C++11 decltype feature? >> `__has_feature(cxx_decltype)` does not work, >> since this macro also detects pre-N3276 decltype. >> (Boost.Config needs to detect N3276 decltype.) > > There's no __has_feature check for it, but it's pretty easy to detect with > SFINAE (check for SFINAE access control first if you want to use this > particular approach):
Thanks, Richard! This works for compile-time detection, but Boost.Config needs preprocessing-time detection… Regards, Michel _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
