Add back std::remove* aliases - third-party libraries rely on these.

This commit is contained in:
Antonio Sanchez 2022-03-31 15:08:01 -07:00 committed by Rasmus Munk Larsen
parent 0c859cf35d
commit ba2cb835aa

View File

@ -90,6 +90,12 @@ struct bool_constant<true> : true_type {};
template<>
struct bool_constant<false> : false_type {};
// Third-party libraries rely on these.
using std::conditional;
using std::remove_reference;
using std::remove_pointer;
using std::remove_const;
template<typename T> struct remove_all { typedef T type; };
template<typename T> struct remove_all<const T> { typedef typename remove_all<T>::type type; };
template<typename T> struct remove_all<T const&> { typedef typename remove_all<T>::type type; };