From: Martin Wille (mw8329_at_[hidden])
Date: 2002-11-09 05:22:56
Aleksey Gurtovoy wrote:
> widget w2;
> w.enable(boost::bind(&widget::is_enabled, &w2)); // here!
> 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.
http://careers.yahoo.com.au - Yahoo! Careers
- 1,000's of jobs waiting online for you!
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk