From dda1e448f93358344ba02a2759d15308e87cf6c7 Mon Sep 17 00:00:00 2001 From: Casey Carter Date: Thu, 10 Oct 2019 18:07:12 +0000 Subject: [PATCH] [libc++][test] Change IsSmallObject's calculation for std::any's small object buffer `sizeof(std::any) - sizeof(void*)` is correct for both libc++ and the MSVC standard library. Differential Revision: https://reviews.llvm.org/D68756 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@374407 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/support/any_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/support/any_helpers.h b/test/support/any_helpers.h index eb9a4c149..099bcec42 100644 --- a/test/support/any_helpers.h +++ b/test/support/any_helpers.h @@ -26,7 +26,7 @@ namespace std { namespace experimental {} } template struct IsSmallObject : public std::integral_constant::value % std::alignment_of::value == 0 && std::is_nothrow_move_constructible::value