Boost logo

Boost :

Subject: Re: [boost] [reference_wrapper] Overloading operator() in reference_wrapper
From: Nathan Crookston (nathan.crookston_at_[hidden])
Date: 2013-04-15 18:28:27

Hi Vicente,

Vicente J. Botet Escriba wrote:

> Le 09/04/13 09:24, Nathan Crookston a écrit :
>> Hi all,
>> std::reference_wrapper includes an overload of operator()[1] which allows
>> a
>> wrapped function object to be called without needing to first unwrap:
>> I think it would be valuable to update boost::ref to match the standard
>> version. On compilers which support variadic templates and rvalue
>> references the code is obvious. Those which support one or neither could
>> still have overloads for some number of arguments.
>> +1. Please could you fill a Trac ticket?

I couldn't find a component that I thought really fit reference_wrapper --
utility doesn't seem right, since it's in the main boost include directory.

I intend to submit a patch as time allows.


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