From 3740669518e6c8e5ca9107f179af3fc3c5fc0a45 Mon Sep 17 00:00:00 2001 From: Mingxin Wang Date: Mon, 1 Jul 2024 23:18:52 +0800 Subject: [PATCH 1/4] Move direction semantics from dispatches to conventions --- proxy.h | 928 +++++++++++++------------------ tests/proxy_creation_tests.cpp | 1 - tests/proxy_dispatch_tests.cpp | 16 +- tests/proxy_invocation_tests.cpp | 8 +- tests/proxy_reflection_tests.cpp | 8 +- tests/proxy_traits_tests.cpp | 20 +- tests/utils.h | 1 + 7 files changed, 402 insertions(+), 580 deletions(-) diff --git a/proxy.h b/proxy.h index d826ef86..dcff5d83 100644 --- a/proxy.h +++ b/proxy.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -66,6 +67,8 @@ struct add_qualifier_traits : std::type_identity {}; template using add_qualifier_t = typename add_qualifier_traits::type; +template +using add_qualifier_ptr_t = std::remove_reference_t>*; template