type_traits.hpp 627 B

123456789101112131415161718192021222324
  1. //
  2. // Copyright 2005-2007 Adobe Systems Incorporated
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. #ifndef BOOST_GIL_CONCEPTS_DETAIL_TYPE_TRAITS_HPP
  9. #define BOOST_GIL_CONCEPTS_DETAIL_TYPE_TRAITS_HPP
  10. #include <type_traits>
  11. namespace boost { namespace gil { namespace detail {
  12. // TODO: C++20: deprecate and replace with std::std_remove_cvref
  13. template <typename T>
  14. struct remove_const_and_reference
  15. : std::remove_const<typename std::remove_reference<T>::type>
  16. {
  17. };
  18. }}} // namespace boost::gil::detail
  19. #endif