Boost logo

Boost :

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!
> 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.

m - Yahoo! Careers
- 1,000's of jobs waiting online for you!

Boost list run by bdawes at, gregod at, cpdaniel at, john at