Use <type_traits> in decltype.hpp

This commit is contained in:
Peter Dimov 2023-10-11 20:23:12 +03:00
parent 9fbea065a4
commit d15dba11ca

View File

@ -6,12 +6,11 @@
#ifndef BOOST_TYPEOF_DECLTYPE_HPP_INCLUDED
# define BOOST_TYPEOF_DECLTYPE_HPP_INCLUDED
#include <boost/type_traits/remove_cv.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <type_traits>
namespace boost { namespace type_of {
template<typename T>
using remove_cv_ref_t = typename remove_cv<typename remove_reference<T>::type>::type;
using remove_cv_ref_t = typename std::remove_cv<typename std::remove_reference<T>::type>::type;
}}
#define BOOST_TYPEOF(expr) boost::type_of::remove_cv_ref_t<decltype(expr)>