addressof.hpp 596 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. Copyright 2014 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_ADDRESSOF_HPP
  8. #define BOOST_ALIGN_DETAIL_ADDRESSOF_HPP
  9. #include <boost/config.hpp>
  10. #if !defined(BOOST_NO_CXX11_ADDRESSOF)
  11. #include <memory>
  12. #else
  13. #include <boost/core/addressof.hpp>
  14. #endif
  15. namespace boost {
  16. namespace alignment {
  17. namespace detail {
  18. #if !defined(BOOST_NO_CXX11_ADDRESSOF)
  19. using std::addressof;
  20. #else
  21. using boost::addressof;
  22. #endif
  23. } /* detail */
  24. } /* alignment */
  25. } /* boost */
  26. #endif