[libcxx] r202991 - Mark is_final as a C++14 feature.
Marshall Clow
mclow.lists at gmail.com
Wed Mar 5 09:58:48 PST 2014
Author: marshall
Date: Wed Mar 5 11:58:48 2014
New Revision: 202991
URL: http://llvm.org/viewvc/llvm-project?rev=202991&view=rev
Log:
Mark is_final as a C++14 feature.
Modified:
libcxx/trunk/include/type_traits
libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp
Modified: libcxx/trunk/include/type_traits
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/type_traits?rev=202991&r1=202990&r2=202991&view=diff
==============================================================================
--- libcxx/trunk/include/type_traits (original)
+++ libcxx/trunk/include/type_traits Wed Mar 5 11:58:48 2014
@@ -762,7 +762,7 @@ template <class _Tp> struct _LIBCPP_TYPE
// is_final
-#if __has_feature(is_final)
+#if _LIBCPP_STD_VER > 11 && __has_feature(is_final)
template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY
is_final : public integral_constant<bool, __is_final(_Tp)> {};
#endif
Modified: libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp?rev=202991&r1=202990&r2=202991&view=diff
==============================================================================
--- libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp (original)
+++ libcxx/trunk/test/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp Wed Mar 5 11:58:48 2014
@@ -13,7 +13,7 @@
#include <type_traits>
-#if __cplusplus >= 201103L
+#if _LIBCPP_STD_VER > 11
struct P final { };
union U1 { };
More information about the cfe-commits
mailing list