[reference_wrapper] feature request

Hi, It came up again in the RangeEx review that we really need reference_wrapper<T> to implement a forwarding operator(). Personally I don't care much for more than one or two arguments, but I guess others will. Thanks -Thorsten

"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.
participants (2)
-
Chard
-
Thorsten Ottosen