Core: Event overloading refactored

git-svn-id: svn://ultimatepp.org/upp/trunk@9798 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-05-04 16:50:31 +00:00
parent bbde0708dd
commit d332c171c1

View file

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