diff --git a/include/boost/smart_ptr/detail/sp_align.hpp b/include/boost/smart_ptr/detail/sp_align.hpp index b78bdc0..5a616ee 100644 --- a/include/boost/smart_ptr/detail/sp_align.hpp +++ b/include/boost/smart_ptr/detail/sp_align.hpp @@ -9,20 +9,10 @@ #ifndef BOOST_SMART_PTR_DETAIL_SP_ALIGN_HPP #define BOOST_SMART_PTR_DETAIL_SP_ALIGN_HPP -#include -#if !defined(BOOST_NO_CXX11_STD_ALIGN) -#include -#endif +#include namespace boost { namespace detail { -#if !defined(BOOST_NO_CXX11_STD_ALIGN) - inline void* sp_align(std::size_t alignment, void* ptr) { - std::size_t n1 = alignment - 1; - std::align(alignment, 0, ptr, n1); - return ptr; - } -#else inline void* sp_align(std::size_t alignment, void* ptr) { std::size_t n1 = (std::size_t)ptr % alignment; if (n1 != 0) { @@ -30,7 +20,6 @@ namespace boost { } return ptr; } -#endif } }