|
@@ -96,10 +96,6 @@ public:
|
|
return callback ? true : false;
|
|
return callback ? true : false;
|
|
}
|
|
}
|
|
|
|
|
|
- std::function<void(Args...)> wrap() const {
|
|
|
|
- return [this](Args... args) { (*this)(std::move(args)...); };
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
protected:
|
|
protected:
|
|
virtual void set(std::function<void(Args...)> func) { callback = std::move(func); }
|
|
virtual void set(std::function<void(Args...)> func) { callback = std::move(func); }
|
|
virtual bool call(Args... args) const {
|
|
virtual bool call(Args... args) const {
|