[cfe-commits] [libcxx] r136526 - in /libcxx/trunk: include/__config include/memory src/exception.cpp

Howard Hinnant hhinnant at apple.com
Fri Jul 29 15:25:03 PDT 2011


On Jul 29, 2011, at 6:18 PM, Ted Kremenek wrote:

> 
> On Jul 29, 2011, at 3:02 PM, Howard Hinnant wrote:
> 
>> On Jul 29, 2011, at 5:58 PM, Chris Lattner wrote:
>> 
>>> 
>>> On Jul 29, 2011, at 2:35 PM, Howard Hinnant wrote:
>>> 
>>>> Author: hhinnant
>>>> Date: Fri Jul 29 16:35:53 2011
>>>> New Revision: 136526
>>>> 
>>>> URL: http://llvm.org/viewvc/llvm-project?rev=136526&view=rev
>>>> Log:
>>>> Configure to get along with 2.9 clang
>>> 
>>> Hi Howard,
>>> 
>>> Checking __clang_major__ is really gross.  Is there any other way to do this?
>>> 
>>> -Chris
>> 
>> 
>> 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.

Howard




More information about the cfe-commits mailing list