From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2004-01-20 14:28:45
On Tue, 20 Jan 2004, Jonathan Turkanis wrote:
> > This implementation is in response to Herb Sutter's desire to
> > delegates cleanly via Function, with Kevlin Henney's realization
> > function<> need not be implementable for that to work.
> Just for clarification, are you talking about managed C++ here?
No. Herb requested that function<> be EqualityComparable so that he could
write a C++ class template with nearly the same syntax/semantics as .NET
delegates. For instance, one could have a delegate such that:
delegate<void(int, int)> del;
del += &foo;
del += &bar;
del -= &bar; // removes bar
del += &foo; // ignores double-attach
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk