From e37bc99e85e85bcac420ac1d4c1a8a5bca280d47 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sun, 7 Jan 2024 14:49:28 +0300 Subject: [PATCH] Modernize the alignment test --- test/type_index_test_ctti_alignment.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/type_index_test_ctti_alignment.cpp b/test/type_index_test_ctti_alignment.cpp index 1d5bbc1..07b0703 100644 --- a/test/type_index_test_ctti_alignment.cpp +++ b/test/type_index_test_ctti_alignment.cpp @@ -6,11 +6,10 @@ // http://www.boost.org/LICENSE_1_0.txt) #include -#include int main() { - BOOST_STATIC_ASSERT_MSG( - boost::alignment_of::value == boost::alignment_of::value, + static_assert( + alignof(boost::typeindex::detail::ctti_data) == alignof(char), "Alignments of boost::typeindex::detail::ctti_data and char differ. " "It is unsafe to reinterpret_cast between them." );