[Boost-bugs] [Boost C++ Libraries] #8442: Match std::reference_wrapper functionality

Subject: [Boost-bugs] [Boost C++ Libraries] #8442: Match std::reference_wrapper functionality
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-15 22:26:06


#8442: Match std::reference_wrapper functionality
-----------------------------------------------------------------+----------
 Reporter: Nathan Crookston <nathan.crookston+boost@…> | Type: Feature Requests
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost Development Trunk
 Severity: Problem | Keywords: reference_wrapper
-----------------------------------------------------------------+----------
 boost::reference_wrapper lacks the ability to forward calls the referenced
 type's operator(), e.g.:

 {{{#!c++
 #include <boost/ref.hpp>
 #include <functional>
 #include <iostream>

 int main()
 {
   auto f = [] { std::cout << "Here" << std::endl; };
   //auto rf = boost::ref(f); //No operator() overload.
   auto rf = std::ref(f);

   f();
   rf();

   return 0;
 }
 }}}

 There are a few other related differences with the standard, e.g.
 std::reference_wrapper inherits from std::{binary|unary}_function, may
 have value_type, etc.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8442>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC