diff --git a/include/rtc/utils.hpp b/include/rtc/utils.hpp index f1a82acb9..e882042cf 100644 --- a/include/rtc/utils.hpp +++ b/include/rtc/utils.hpp @@ -24,6 +24,7 @@ #include #include #include +#include namespace rtc { @@ -34,11 +35,10 @@ template overloaded(Ts...) -> overloaded; // weak_ptr bind helper template auto weak_bind(F &&f, T *t, Args &&..._args) { return [bound = std::bind(f, t, _args...), weak_this = t->weak_from_this()](auto &&...args) { - using result_type = typename decltype(bound)::result_type; if (auto shared_this = weak_this.lock()) return bound(args...); else - return static_cast(false); + return static_cast(false); }; }