mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
Core: CoWork now accepts Function<void ()> only, callback per operator
git-svn-id: svn://ultimatepp.org/upp/trunk@9946 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
51e089ba50
commit
f2c5fff7c8
1 changed files with 0 additions and 2 deletions
|
|
@ -46,10 +46,8 @@ public:
|
|||
|
||||
public:
|
||||
void Do(Function<void ()>&& fn);
|
||||
void Do(const Callback& cb) { Do(Function<void ()>(clone(cb))); }
|
||||
void Do(const Function<void ()>& fn) { Do(clone(fn)); }
|
||||
|
||||
CoWork& operator&(const Callback& cb) { Do(cb); return *this; }
|
||||
CoWork& operator&(const Function<void ()>& fn) { Do(fn); return *this; }
|
||||
CoWork& operator&(Function<void ()>&& fn) { Do(pick(fn)); return *this; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue