
27 Apr
2009
27 Apr
'09
6:25 p.m.
"Thorsten Ottosen" <thorsten.ottosen@dezide.com> wrote in message news:49F4B403.5040206@dezide.com...
Hi,
It came up again in the RangeEx review that we really need reference_wrapper<T> to implement a forwarding operator().
Because boost::random::uniform_01 takes its engine argument by value (and cannot use a reference type), I use the boost::random::detail::pass_through_engine wrapper to ensure re-use of the same engine for different generators. That does provide operator(). Perhaps there's scope for some unification here.