mirror of
https://github.com/boostorg/typeof.git
synced 2025-05-09 15:04:00 +00:00
Use <type_traits> in decltype.hpp
This commit is contained in:
parent
9fbea065a4
commit
d15dba11ca
@ -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)>
|
||||
|
Loading…
x
Reference in New Issue
Block a user