
11 Mar
2004
11 Mar
'04
9:29 p.m.
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. Doug