Boost logo

Boost Users :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2007-02-16 10:36:03


Sohail Somani wrote:
> Hi,
>
> Say I have a function "int add(int, int)" and want to use it in a call
> to std::transform with zip_iterators. Is there a way to do it without
> writing an intermediate function object?
>
> If not, would it be sensible to write a generic one using the
> function_types library? I can't imagine this would be too hard but just
> wanted to know if there is anything I can leverage before writing it
> myself.

I guess what you're looking for is...

http://tinyurl.com/26t9dd
=http://lists.boost.org/Archives/boost/2007/01/115135.php

http://tinyurl.com/y9ax7t
=http://boost.cvs.sourceforge.net/boost/boost/boost/iterator/zip_iterator.hpp?view=log&pathrev=zip_iterator_fusion

It seems not so easy because of the Forwarding Problem.

Regards,

-- 
Shunsuke Sogame

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net