[libcxx] Get is_*_destructible tests passing in C++03.
Summary: This patch adds proper guards to the is_destructible tests depending on the standard version so that they pass in c++03. Reviewers: mclow.lists, EricWF Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D10047 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@242612 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2917,6 +2917,9 @@ template <class _Tp> struct __libcpp_trivial_destructor
|
||||
template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY is_trivially_destructible
|
||||
: public __libcpp_trivial_destructor<typename remove_all_extents<_Tp>::type> {};
|
||||
|
||||
template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY is_trivially_destructible<_Tp[]>
|
||||
: public false_type {};
|
||||
|
||||
#endif
|
||||
|
||||
// is_nothrow_constructible
|
||||
@@ -3241,6 +3244,10 @@ template <class _Tp> struct __libcpp_nothrow_destructor
|
||||
template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY is_nothrow_destructible
|
||||
: public __libcpp_nothrow_destructor<typename remove_all_extents<_Tp>::type> {};
|
||||
|
||||
template <class _Tp>
|
||||
struct _LIBCPP_TYPE_VIS_ONLY is_nothrow_destructible<_Tp[]>
|
||||
: public false_type {};
|
||||
|
||||
#endif
|
||||
|
||||
// is_pod
|
||||
|
Reference in New Issue
Block a user