[cfe-commits] [libcxx] r136526 - in /libcxx/trunk: include/__config include/memory src/exception.cpp
Chris Lattner
clattner at apple.com
Fri Jul 29 15:30:38 PDT 2011
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
More information about the cfe-commits
mailing list