On Thu, Jun 21, 2012 at 7:39 PM, Stefan Stavrev <[email protected]> wrote:
> Then you would call:
>
> parallel_image (boost::bind (over_RAB (R, A,  B, roi) ), R, roi, nthreads)

The trick is to partially apply over_RAB, that is, only bind some of
the arguments.  The partial application syntax when using boost::bind is
as follows:

boost::bind(over_RAB, R, A, B, _1)

This produces a function object f which takes one argument, and which
can be called
inside parallel_image as f(roi).

~Chris
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to