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:
cxl 2016-06-15 18:30:07 +00:00
parent 51e089ba50
commit f2c5fff7c8

View file

@ -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; }