Boost logo

Boost :

Subject: Re: [boost] Interest check: memoization
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-01-25 05:45:03

James Porter wrote:

> The interface is straightforward, so I'll let the following code snippet
> speak for itself:
> memoizer<int (int,int)> memo(my_func);
> int ret = memo(i,j);

It would be better if it worked with any function object.
Thus the return type cannot be memoizer<int (int, int)>, unless you also
perform type erasure, which would be fairly silly.

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