[Bind?] Returning generators instead of evaluating.

Hi All
Does this functionality exist anywhere in Boost? If so can someone point me
to it, and if not
does it seem like a useful thing?
Thx,
- Rob.
using boost::function;
using boost::bind;
template

Robert Jones-2 wrote:
Hi All
Does this functionality exist anywhere in Boost? If so can someone point me to it, and if not does it seem like a useful thing?
How is make_generator different from bind?
Why
function

On Tue, Oct 18, 2011 at 3:54 PM, Vicente Botet
How is make_generator different from bind? Why
function
g = bind(f,v); Doesn't works for you?
Hi Vicente
Thanks for answering. My initial response was "Doh, I've asked a really
stupid question here.", which may still
be true! But walk a little with me on this...
In this code sequence
#include <vector>
#include <iostream>
#include "boost/assign/std/vector.hpp"
#include "boost/function.hpp"
#include "boost/bind.hpp"
using boost::function;
using boost::bind;
void do_it( function

On 10/19/2011 11:23 AM, Robert Jones wrote:
...how would you write the final for_each using bind directly, given that the other interfaces are fixed?
Use a polymorphic bind, like the standard one or the one from Boost.Phoenix v3.

On Thu, Oct 20, 2011 at 8:50 PM, Mathias Gaunard < mathias.gaunard@ens-lyon.org> wrote:
On 10/19/2011 11:23 AM, Robert Jones wrote:
...how would you write the final for_each using bind directly, given
that the other interfaces are fixed?
Use a polymorphic bind, like the standard one or the one from Boost.Phoenix v3.
Could you demonstrate? Ideally using the standard one, as I don't have Phoenix V3 available in this context. Thx, Rob.
participants (3)
-
Mathias Gaunard
-
Robert Jones
-
Vicente Botet