From: Matthias Troyer (troyer_at_[hidden])
Date: 2007-02-16 22:02:54
On 16 Feb 2007, at 14:57, Matthias Schabel wrote:
>> One problem I see with this is: how does the tracked_var know when to
>> record the current value if it does not change? Do I need to do
>> v += 0.
>> if I want to enforce a sample even when the value does not change?
> How about :
> v = v;
Ugly, since this means that any copy might trigger a sample.
If one does things like t would prefer explicit sampling.
but then one cold just as well write
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk