Boost logo

Boost Users :

Subject: Re: [Boost-users] [Bind] how can a make the equivalent to the , operator
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2009-04-15 02:41:09


2009/4/15 Robert Ramey <ramey_at_[hidden]>

> I would like to compose two function objects into one. Bind describse this
> using || or && but my function objects return void. How can i package them
> into a new one that invokes both the components.
>
> Robert Ramey
>

For a long time Boost.Bind didn't overload any operators. Later, overloads
for logic operators were added because they are needed so ofter, but there
were no plans to support all operators.

Use Boost.Lambda or Boost.Phoenix. Both these libraries support operator,
for grouping function objects.

Roman Perepelitsa.



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