Subject: Re: [boost] Interest check: memoization
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-01-25 19:51:14
James Porter wrote:
> I'm still considering the syntax for that. It's simple enough for
> boost::functions, but for generic function objects, it's not clear to me
> what the syntax should be, since a function object could potentially
> have many overloads of operator().
Why not simply
auto g = memoize(f); /* type of g is unspecified, using auto for
automatic type deduction */
just like bind & friends.
Does your memoize adaptor require knowing the signatures of the function
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk