12345678910111213141516171819202122232425262728293031 |
- #ifndef BOOST_ALIGN_DETAIL_ALIGNMENT_OF_HPP
- #define BOOST_ALIGN_DETAIL_ALIGNMENT_OF_HPP
- #include <boost/align/detail/min_size.hpp>
- namespace boost {
- namespace alignment {
- namespace detail {
- template<class T>
- struct offset_value {
- char value;
- T object;
- };
- template<class T>
- struct alignment_of
- : min_size<sizeof(T), sizeof(offset_value<T>) - sizeof(T)> { };
- }
- }
- }
- #endif
|