From c8ad6422d63196040ea68c03874b0ff8f2bf32cb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 30 Jan 2023 18:54:58 -0800 Subject: Try to fix has_to_address --- common/almalloc.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/common/almalloc.h b/common/almalloc.h index b5821784..270cd76c 100644 --- a/common/almalloc.h +++ b/common/almalloc.h @@ -113,10 +113,14 @@ namespace detail_ { using void_t = void; template - constexpr bool has_to_address = false; + struct has_to_address_ : public std::false_type { }; template - constexpr bool has_to_address::to_address(std::declval()))>> = true; + struct has_to_address_::to_address(std::declval()))>> + : public std::true_type + { }; + template + constexpr bool has_to_address = has_to_address_::value; } // namespace detail_ template -- cgit v1.2.3