From 5c31dbbb7f9e2048cad569de118543d42a6a61f5 Mon Sep 17 00:00:00 2001 From: Mingxin Wang Date: Fri, 29 Mar 2024 22:46:22 +0800 Subject: [PATCH] Fix typo --- proxy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.h b/proxy.h index b96462b..abd8047 100644 --- a/proxy.h +++ b/proxy.h @@ -162,7 +162,7 @@ void relocate_dispatcher(char* self, char* rhs) noexcept(NE) { std::destroy_at(reinterpret_cast(rhs)); } template -static void destroy_dispatcher(char* self) noexcept(NE) +void destroy_dispatcher(char* self) noexcept(NE) { std::destroy_at(reinterpret_cast(self)); } template struct overload_traits : inapplicable_traits {}; @@ -238,7 +238,7 @@ struct dispatcher_meta { bool has_value() const noexcept { return dispatcher != nullptr; } void reset() noexcept { dispatcher = nullptr; } - decltype(MP::template get()) dispatcher; + typename MP::dispatcher_type dispatcher; }; template