|
Boost : |
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-19 15:06:02
AMDG
JOAQUIN M. LOPEZ MUÑOZ wrote:
> Shouldn't this last line be
>
> return(advance(++x, n - 1));
>
> thus ruining the memoization?
>
No, it should be ++advance(x, n - 1) which saves memoization.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk