mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-09-03 15:49:28 +00:00
Compilation fixes
This commit is contained in:
@ -75,14 +75,14 @@ template <typename F, typename T, typename... Args> auto weak_bind(F &&f, T *t,
|
||||
if (auto shared_this = weak_this.lock())
|
||||
return bound(args...);
|
||||
else
|
||||
return (result_type) false;
|
||||
return static_cast<result_type>(false);
|
||||
};
|
||||
}
|
||||
|
||||
template <typename... P> class synchronized_callback {
|
||||
public:
|
||||
synchronized_callback() = default;
|
||||
synchronized_callback(std::function<void(P...)> func) { *this = std::move(func); };
|
||||
synchronized_callback(std::function<void(P...)> func) { *this = std::move(func); }
|
||||
~synchronized_callback() { *this = nullptr; }
|
||||
|
||||
synchronized_callback &operator=(std::function<void(P...)> func) {
|
||||
|
Reference in New Issue
Block a user