Re: [Boost-bugs] [Boost C++ Libraries] #1427: [iterator] transform_iterator should use boost::result_of to determine functor result type

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1427: [iterator] transform_iterator should use boost::result_of to determine functor result type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-07-31 09:03:59


#1427: [iterator] transform_iterator should use boost::result_of to determine
functor result type
------------------------------------------+---------------------------------
 Reporter: anonymous | Owner: dave
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: iterator
  Version: Boost 1.34.1 | Severity: Problem
 Keywords: transform_iterator result_of |
------------------------------------------+---------------------------------

Comment(by debionne@…):

 The patchs above changes the mechanism that computes the default result
 type of the given UnaryFunction to use boost::result_of. Consequently,
 transform_iterator now support polymorphic object function (i.e. function
 wich result type depends on the arguments type). Such a function object
 must implement the result_of 'protocol', that is implement a nested result
 structure such as :

 template <class FArgs> struct result;
 template <class F, class T> struct result<F(T)> {typedef whatever<T>::type
 type};

 A polymorphic object function is added to the tests.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1427#comment:1>
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:00 UTC