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." );