Boost logo

Boost :

Subject: Re: [boost] [reference_wrapper] add operator()(Args...) to reference_wrapper
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2012-04-21 17:07:25

On Fri, Apr 20, 2012 at 5:03 AM, Philipp Moeller <
philipp.moeller_at_[hidden]> wrote:

> Given that Boost now has perfect forwarding emulation through Boost.Move
> and a better result_of, would it be possible to enable reference_wrapper
> to forward the function call operator?
> The current behavior is somewhat surprising and makes a few of the most
> promising applications of reference_wrapper (reference wrap polymorphic
> boost::function objects) impossible with code that is no prepared to
> work with reference_wrapper. It would also be more consistent with
> reference_wrapper of the stdlib.
> I can file a corresponding bug report and add a patch, if there is
> interest.

I think this would make a nice addition to the boost::reference_wrapper

Isn't there a CRTP base class in Boost that aids in programming
nearly-perfect forwarding in C++03?

- Jeff

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