diff options
Diffstat (limited to 'libcxx/test/support/any_helpers.h')
-rw-r--r-- | libcxx/test/support/any_helpers.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/support/any_helpers.h b/libcxx/test/support/any_helpers.h index a720ecd7c82..afc85c97ff4 100644 --- a/libcxx/test/support/any_helpers.h +++ b/libcxx/test/support/any_helpers.h @@ -24,13 +24,13 @@ namespace std { namespace experimental {} } #define RTTI_ASSERT(X) #endif -template <class _Tp> +template <class T> struct IsSmallObject : public std::integral_constant<bool - , sizeof(_Tp) <= (sizeof(void*)*3) + , sizeof(T) <= (sizeof(void*)*3) && std::alignment_of<void*>::value - % std::alignment_of<_Tp>::value == 0 - && std::is_nothrow_move_constructible<_Tp>::value + % std::alignment_of<T>::value == 0 + && std::is_nothrow_move_constructible<T>::value > {}; |