mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 22:03:07 -06:00
Core: Event overloading refactored
git-svn-id: svn://ultimatepp.org/upp/trunk@9798 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bbde0708dd
commit
d332c171c1
1 changed files with 0 additions and 8 deletions
|
|
@ -93,19 +93,11 @@ public:
|
|||
Event(Fn&& src, int) : fn(src) {}
|
||||
template <class F>
|
||||
Event(F src, int) : fn(src) {}
|
||||
// Event(Fn&& src) : fn(src) {}
|
||||
// Event& operator=(const Fn& src) { fn = src.fn; return *this; }
|
||||
Event& operator=(const Event& src) { fn = src.fn; return *this; }
|
||||
Event& operator=(Event&& src) { fn = pick(src.fn); return *this; }
|
||||
Event& operator=(CNULLer) { fn.Clear(); return *this; }
|
||||
Event Proxy() const { return Event(fn.Proxy(), 1); }
|
||||
/*
|
||||
Event& operator<<(const Event& b) { fn << b.fn; return *this; }
|
||||
Event& operator<<(const Fn& b) { fn << b; return *this; }
|
||||
|
||||
Event& operator<<(Event&& b) { fn << pick(b.fn); return *this; }
|
||||
Event& operator<<(Fn&& b) { fn << pick(b); return *this; }
|
||||
*/
|
||||
template <class F>
|
||||
Event& operator<<(const F& f) { fn << f; return *this; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue