/* (c) 2014 Glen Joseph Fernandes glenjofe at gmail dot com Distributed under the Boost Software License, Version 1.0. http://boost.org/LICENSE_1_0.txt */ #ifndef BOOST_ALIGN_DETAIL_REMOVE_TRAITS_HPP #define BOOST_ALIGN_DETAIL_REMOVE_TRAITS_HPP #include #if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) #include #else #include #endif namespace boost { namespace alignment { namespace detail { #if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) using std::remove_reference; using std::remove_all_extents; using std::remove_cv; #else template struct remove_reference { typedef T type; }; template struct remove_reference { typedef T type; }; #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) template struct remove_reference { typedef T type; }; #endif template struct remove_all_extents { typedef T type; }; template struct remove_all_extents { typedef typename remove_all_extents::type type; }; template struct remove_all_extents { typedef typename remove_all_extents::type type; }; template struct remove_const { typedef T type; }; template struct remove_const { typedef T type; }; template struct remove_volatile { typedef T type; }; template struct remove_volatile { typedef T type; }; template struct remove_cv { typedef typename remove_volatile::type>::type type; }; #endif } } } #endif