diff --git a/include/type_traits b/include/type_traits index 63ab138b2..660ed8695 100644 --- a/include/type_traits +++ b/include/type_traits @@ -762,7 +762,7 @@ template struct _LIBCPP_TYPE_VIS_ONLY is_abstract : public __libcpp_ // is_final -#if __has_feature(is_final) +#if _LIBCPP_STD_VER > 11 && __has_feature(is_final) template struct _LIBCPP_TYPE_VIS_ONLY is_final : public integral_constant {}; #endif diff --git a/test/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp b/test/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp index 2f69c743e..cf3219621 100644 --- a/test/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp +++ b/test/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp @@ -13,7 +13,7 @@ #include -#if __cplusplus >= 201103L +#if _LIBCPP_STD_VER > 11 struct P final { }; union U1 { };