[cfe-commits] [libcxx] r136596 - /libcxx/trunk/include/__config

Howard Hinnant hhinnant at apple.com
Sun Jul 31 10:10:44 PDT 2011


Author: hhinnant
Date: Sun Jul 31 12:10:44 2011
New Revision: 136596

URL: http://llvm.org/viewvc/llvm-project?rev=136596&view=rev
Log:
Change how _LIBCPP_HAS_NO_ADVANCED_SFINAE gets set.

Modified:
    libcxx/trunk/include/__config

Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=136596&r1=136595&r2=136596&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Sun Jul 31 12:10:44 2011
@@ -148,7 +148,7 @@
 #define _LIBCPP_HAS_NO_AUTO_TYPE
 #endif
 
-#if __clang_major__ < 3
+#if !(__has_feature(cxx_access_control_sfinae)) || !__has_feature(cxx_trailing_return)
 #define _LIBCPP_HAS_NO_ADVANCED_SFINAE
 #endif
 





More information about the cfe-commits mailing list