Date: 1999-12-09 00:33:58
Gabriel Dos Reis writes:
> Althought I agree with DK, I think the fact that operator() should
> be a member function isn't really a big constraint, assuming I didn't
> miss anything :-) Since you plan to use proxies, what about making
> operator() a template member function and forward the actual
> operation to be done to a global function?
With the member function you have to apply some wrapper at the call
site (of the graph algorithm) if the operator is not already provided
by whatever you are using for property storage. With the global
function, no wrapping is needed at the call site, just overload the
function once and for all.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk