]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/align/include/boost/align/detail/alignment_of_msvc.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / align / include / boost / align / detail / alignment_of_msvc.hpp
CommitLineData
7c673cae
FG
1/*
2(c) 2014-2015 Glen Joseph Fernandes
3<glenjofe -at- gmail.com>
4
5Distributed under the Boost Software
6License, Version 1.0.
7http://boost.org/LICENSE_1_0.txt
8*/
9#ifndef BOOST_ALIGN_DETAIL_ALIGNMENT_OF_MSVC_HPP
10#define BOOST_ALIGN_DETAIL_ALIGNMENT_OF_MSVC_HPP
11
12#include <boost/align/detail/min_size.hpp>
13
14namespace boost {
15namespace alignment {
16namespace detail {
17
18template<class T>
19struct alignof_helper {
20 T first;
21 char value;
22 T second;
23};
24
25template<class T>
26struct alignment_of
27 : min_size<sizeof(T),
28 sizeof(alignof_helper<T>) - (sizeof(T) << 1)> { };
29
30} /* .detail */
31} /* .alignment */
32} /* .boost */
33
34#endif