On Jul 29, 2011, at 3:25 PM, Howard Hinnant wrote:

>>> 
>>> I need _LIBCPP_HAS_NO_ADVANCED_SFINAE to be set for clang versions less 
>>> than 3, and not for versions 3 and greater.  __clang_major__ seems to do 
>>> exactly what I need.
>>> 
>>> Howard
>> 
>> Can't we just define a __has_feature() for this?  That's why we invented it.
> 
> I'm just now noticing cxx_access_control_sfinae.  I'll play with that and see 
> if it does what I want.

Great, thanks.  Worst case, can we introduce a new has_feature?  I'm inherently 
untrusting of version numbers.  "Apple 3.0" and "llvm.org 3.0" are different 
beasts, for example.  I don't know how this surfaces through __clang_major__.

-Chris 
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to