$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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.
Regards,
m
http://careers.yahoo.com.au - Yahoo! Careers
- 1,000's of jobs waiting online for you!