Hello list, Can boost.bind() be used to delay the call to a member function until you have gathered all the data types to populate the function parameter list? Etienne
Can boost.bind() be used to delay the call to a member function until you have gathered all the data types to populate the function parameter list?
Yes, if you mean something like this:
struct A
{
voif f(int a, double b, short c);
};
A *a = new A;
function
Igor R wrote:
Can boost.bind() be used to delay the call to a member function until you have gathered all the data types to populate the function parameter list?
Yes, if you mean something like this:
struct A { voif f(int a, double b, short c); };
A *a = new A; function
func = bind(&A::f, a, _1, _2, _3); // somewhere later: func(1, 2.0, 0);
Thank you!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-use
participants (2)
-
Etienne Philip Pretorius
-
Igor R