Mark is_final as a C++14 feature.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@202991 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d6dcb5569
commit
24b29a02f1
@ -762,7 +762,7 @@ template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY is_abstract : public __libcpp_
|
|||||||
|
|
||||||
// is_final
|
// is_final
|
||||||
|
|
||||||
#if __has_feature(is_final)
|
#if _LIBCPP_STD_VER > 11 && __has_feature(is_final)
|
||||||
template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY
|
template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY
|
||||||
is_final : public integral_constant<bool, __is_final(_Tp)> {};
|
is_final : public integral_constant<bool, __is_final(_Tp)> {};
|
||||||
#endif
|
#endif
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
#if __cplusplus >= 201103L
|
#if _LIBCPP_STD_VER > 11
|
||||||
|
|
||||||
struct P final { };
|
struct P final { };
|
||||||
union U1 { };
|
union U1 { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user