From: Douglas Gregor (gregod_at_[hidden])
Date: 2004-03-11 16:29:37
On Thursday 11 March 2004 10:35 am, Peter Dimov wrote:
> void f();
> my_function<void()> g(f);
> your_function<void()> h(g);
> g == h; //???
I'd bet that this results in a compilation error, so the user would know to
try on of these syntaxes:
> g.contains(h); // false
> h.contains(g); // true
> It's limited to the one and only function<> (and you can't even ask a
> function<> whether it contains another function<>, right?)
Right, you can't compare function<> objects, but you can compare a function<>
object to something it could target.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk