
17 Oct
2011
17 Oct
'11
10:03 a.m.
Hi All
In the code below my objective is pass a nullary function object to apply,
and for that
nullary function object to be 'my_function()' called with each member of the
vector. How can I
recode the call to apply as a unary bind expression such that I can write
the for loop
as a for_each loop?
Thx,
- Rob.
#include <vector>
#include "boost/function.hpp"
#include "boost/bind.hpp"
void apply( boost::function