From 9606b3cbf1ed1896d38786f27bff4092b4ded96f Mon Sep 17 00:00:00 2001 From: Curve Date: Thu, 20 Jun 2024 19:13:47 +0200 Subject: [PATCH] refactor(hook): calling convention as first template param --- include/lime/hooks/hook.hpp | 2 +- include/lime/hooks/hook.inl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lime/hooks/hook.hpp b/include/lime/hooks/hook.hpp index 072d296..615368f 100644 --- a/include/lime/hooks/hook.hpp +++ b/include/lime/hooks/hook.hpp @@ -95,7 +95,7 @@ namespace lime static rtn_t create(Source source, Callable &&target); }; - template + template auto make_hook(Signature source, Callable &&target); template diff --git a/include/lime/hooks/hook.inl b/include/lime/hooks/hook.inl index 0a24944..12f34ae 100644 --- a/include/lime/hooks/hook.inl +++ b/include/lime/hooks/hook.inl @@ -57,7 +57,7 @@ namespace lime return rtn; } - template + template auto make_hook(Signature source, Callable &&target) { return hook, Convention>::create(source, std::forward(target));