Subject: [Boost-bugs] [Boost C++ Libraries] #6914: [Lambda] Add result_of and tr1_result_of specializations for nullary function calls
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-17 15:08:00
#6914: [Lambda] Add result_of and tr1_result_of specializations for nullary
function calls
-------------------------------------+--------------------------------------
Reporter: michel | Owner: no-maintainer
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: lambda
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
To support nullary-callable polymorphic function objects in
C++03 `result_of`, we have to specialize `result_of` and `tr1_result_of`
for the zero-argument case. (If we don't provide specializations,
the type determined by C++03 `result_of` for zero-argument
function calls is defaulted to void. See the rationale in N1454.)
For example, `phoenix/core/actor.hpp` has such specializations.
(Note that its current implementation is not perfect: #6911.)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6914> 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:09 UTC