Skip to content

Commit

Permalink
fix: allow pre-P0522 compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihaoy committed Dec 9, 2024
1 parent ab3dd19 commit 60df318
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/std23/__functional_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ template<class T, class Self>
inline constexpr bool _is_not_self =
not std::is_same_v<std::remove_cvref_t<T>, Self>;

template<class T, template<class> class>
template<class T, template<class...> class>
inline constexpr bool _looks_nullable_to_impl = std::is_member_pointer_v<T>;

template<class F, template<class> class Self>
template<class F, template<class...> class Self>
inline constexpr bool _looks_nullable_to_impl<F *, Self> =
std::is_function_v<F>;

template<class... S, template<class...> class Self>
inline constexpr bool _looks_nullable_to_impl<Self<S...>, Self> = true;

template<class S, template<class> class Self>
template<class S, template<class...> class Self>
inline constexpr bool _looks_nullable_to =
_looks_nullable_to_impl<std::remove_cvref_t<S>, Self>;

Expand Down

0 comments on commit 60df318

Please sign in to comment.