From 54abf68f1ec5193cd8985656c299f387a19545c8 Mon Sep 17 00:00:00 2001 From: Rye Date: Sun, 30 Nov 2025 12:15:22 -0500 Subject: #5078 Replace boost::hof::invocable with c++17 std::is_invocable Signed-off-by: Rye --- indra/llcommon/lleventdispatcher.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/indra/llcommon/lleventdispatcher.h b/indra/llcommon/lleventdispatcher.h index 4c3c0f3414..27cf4c1974 100644 --- a/indra/llcommon/lleventdispatcher.h +++ b/indra/llcommon/lleventdispatcher.h @@ -35,7 +35,6 @@ #include #include #include -#include // until C++17, when we get std::is_invocable #include #include // std::function #include // std::unique_ptr @@ -99,7 +98,7 @@ public: template ::value + std::is_invocable::value >::type> void add(const std::string& name, const std::string& desc, @@ -295,9 +294,8 @@ public: * converted to the corresponding parameter type using LLSDParam. */ template () - >::type> + typename=typename std::enable_if_t< + ! std::is_invocable()>> void add(const std::string& name, const std::string& desc, CALLABLE&& f) @@ -338,7 +336,7 @@ public: template::value && - ! boost::hof::is_invocable::value + ! std::is_invocable::value >::type> void add(const std::string& name, const std::string& desc, Function f, const LLSD& params, const LLSD& defaults=LLSD()); -- cgit v1.3