2 Sep
2004
2 Sep
'04
2:06 p.m.
David Abrahams wrote:
Because it doesn't know what you will pass to it ;-)
Consider:
struct polymorphic_function_object { template <class T> T operator()(T x) const; };
What should argument_type be in the result of
bind(polymorphic_function_object(), _1)
Ah. It's all become clear. :) Makes perfect sense.
Have you looked at the Boost lambda library? It incorporates all the operators.
Unfortunately I'm stuck working with VC7.0 which, as I understand, won't cut the mustard for lambda... Thanks, Matt