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?
Ticket: https://svn.boost.org/trac/boost/ticket/8442 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. Thanks, Nate