From b789ad014ac06674576ee09044c33e4f43ee5afa Mon Sep 17 00:00:00 2001 From: Mingxin Wang Date: Sat, 27 Jul 2024 23:20:14 +0800 Subject: [PATCH 1/2] Fix compile error --- proxy.h | 55 +++++++++++++------------------------------------------ 1 file changed, 13 insertions(+), 42 deletions(-) diff --git a/proxy.h b/proxy.h index 29627982..ae944391 100644 --- a/proxy.h +++ b/proxy.h @@ -44,10 +44,8 @@ template class proxy; namespace details { -template -struct conditional_traits { static constexpr bool applicable = A; }; -using applicable_traits = conditional_traits; -using inapplicable_traits = conditional_traits; +struct applicable_traits { static constexpr bool applicable = true; }; +struct inapplicable_traits { static constexpr bool applicable = false; }; enum class qualifier_type { lv, const_lv, rv, const_rv }; template struct add_qualifier_traits; @@ -74,15 +72,6 @@ template