Aleksey Gurtovoy wrote:
...
> widget w2;
w.enable(boost::bind(&widget::is_enabled, &w2)); // here!
w2.enable(false);
assert(!w.is_enabled()) // !
}
Pure & beautiful, IMO.
Consider a widget class that performs some action on enabling/disabling
(like dimming a button). In that case the action would be performed for
w2 but not for w.
Regards,
m
http://careers.yahoo.com.au - Yahoo! Careers
- 1,000's of jobs waiting online for you!
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost