From 4a4e2a38d180ebb1dcb358048cce97f20807e6a9 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 20 Aug 2024 14:39:25 +0200 Subject: [PATCH] delegate: refine function_pointer implementation - see #1167 (same issue) --- TODO | 2 +- src/entt/signal/delegate.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index eefafb3c2..c1bbf282b 100644 --- a/TODO +++ b/TODO @@ -45,4 +45,4 @@ TODO: * suppress -Wself-move on CI with g++13 * view and view iterator specializations for multi, single and filtered elements * organizer support to groups -* see maybe bug here: https://discord.com/channels/707607951396962417/707624203456872480/1275012149865087006 \ No newline at end of file +* see maybe bug here: https://discord.com/channels/707607951396962417/707624203456872480/1275012149865087006 diff --git a/src/entt/signal/delegate.hpp b/src/entt/signal/delegate.hpp index 006064928..7143c9f8d 100644 --- a/src/entt/signal/delegate.hpp +++ b/src/entt/signal/delegate.hpp @@ -27,7 +27,7 @@ constexpr auto function_pointer(Ret (Class::*)(Args...), Other &&...) -> Ret (*) template constexpr auto function_pointer(Ret (Class::*)(Args...) const, Other &&...) -> Ret (*)(Args...); -template +template>> constexpr auto function_pointer(Type Class::*, Other &&...) -> Type (*)(); template