Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-10-05 18:54:52

Daniel Wallin <dalwan01_at_[hidden]> writes:

>>I thought I'd open it up for suggestions. Thoughts, anyone?
> I got two ideas on how to reduce the code required for a function. I'm
> attaching a modified version of your code which demonstrates the
> two ideas on your example functions.


as usual you are full of good ideas ;-)

The one which makes f into a function object is appealing to me in
part because it *doesn't* support Koenig lookup. Generalized function
templates are dangerous in the presence of ADL.

Is it possible to combine the approaches to reduce the amount of code
in the function object implementation?

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at