Remove detail::make_dependent in favor of an extra template parameter in is_transparetn

This commit is contained in:
LeonineKing1199 committed 2021-11-22 13:29:41 -08:00
1 parent 937c3484cf
commit 8ba710637a
2 files changed
+10 -13

No files matched your search

@@ -726,16 +726,15 @@ namespace boost {
////////////////////////////////////////////////////////////////////////////
// Type checkers used for the transparent member functions added by C++20 and up
template <class>
struct make_dependent : public true_type {};
template <class, class = void> struct is_transparent : public false_type
template <class, class, class = void>
struct is_transparent : public false_type
{
};
template <class T>
struct is_transparent<T,
typename boost::make_void<typename T::is_transparent>::type> : public true_type
template <class X, class T>
struct is_transparent<X, T,
typename boost::make_void<typename T::is_transparent>::type>
: public true_type
{
};