Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-08-09 07:34:18


Aleksey Gurtovoy wrote:
> Consider the following snippet:
>
> void show_warning( message_dialog const&, user_message );
> void post_command( boost::function<void()> );
>
> int main()
> {
> boost::function<void( user_message )> f(
> bind( &post_command
> , ????( bind( &show_warning, message_dialog(), _1 ) )
> // ^^^^ what goes here?

"protect", in boost/bind/protect.hpp. Lambda has both "protect" and
"unlambda", either will work (I think).

> )
> );
> }


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk