]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_index/test/type_index_test_ctti_alignment.cpp
2 // Copyright 2012-2020 Antony Polukhin.
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)
8 #include <boost/type_index/ctti_type_index.hpp>
9 #include <boost/type_traits/alignment_of.hpp>
12 BOOST_STATIC_ASSERT_MSG(
13 boost::alignment_of
<boost::typeindex::detail::ctti_data
>::value
== boost::alignment_of
<char>::value
,
14 "Alignments of boost::typeindex::detail::ctti_data and char differ. "
15 "It is unsafe to reinterpret_cast between them."