|
@@ -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) {
|