1//
2// Copyright 2012-2024 Antony Polukhin.
3//
4// Distributed under the Boost Software License, Version 1.0. (See
5// accompanying file LICENSE_1_0.txt or copy at
6// http://www.boost.org/LICENSE_1_0.txt)
7
8#include <boost/type_index/ctti_type_index.hpp>
9
10int main() {
11 static_assert(
12 alignof(boost::typeindex::detail::ctti_data) == alignof(char),
13 "Alignments of boost::typeindex::detail::ctti_data and char differ. "
14 "It is unsafe to reinterpret_cast between them."
15 );
16}
17
18

source code of boost/libs/type_index/test/type_index_test_ctti_alignment.cpp