max_align.hpp 563 B

1234567891011121314151617181920212223242526
  1. /*
  2. Copyright 2014-2015 Glen Joseph Fernandes
  3. (glenjofe@gmail.com)
  4. Distributed under the Boost Software License, Version 1.0.
  5. (http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifndef BOOST_ALIGN_DETAIL_MAX_ALIGN_HPP
  8. #define BOOST_ALIGN_DETAIL_MAX_ALIGN_HPP
  9. #include <boost/align/detail/max_size.hpp>
  10. #include <boost/align/alignment_of.hpp>
  11. namespace boost {
  12. namespace alignment {
  13. namespace detail {
  14. template<class A, class B>
  15. struct max_align
  16. : max_size<alignment_of<A>::value, alignment_of<B>::value> { };
  17. } /* detail */
  18. } /* alignment */
  19. } /* boost */
  20. #endif