29 Mar
2006
29 Mar
'06
11:49 p.m.
Nico Galoppo wrote:
Hi,
what kind of object does boost::bind return when binding to a class member variable ? (as opposed to a member method). Is it a function object too?
Yes, the result is an unary function object, the parameter being the object to retrieve the variable of, and which returns a reference to the member variable. The exact type of course is a complicated bind expression, so a non-template is not particularly suited for taking it. Sebastian Redl