Re: [boost] bind/lambda - unsupported use case?

2003-08-14 Thread Aleksey Gurtovoy
Gary Powell wrote: > >Consider the following snippet: > > > >void show_warning( message_dialog const&, user_message ); > >void post_command( boost::function ); > > > >int main() > >{ > >boost::function f( > > bind( &post_command > >, ( bind(

Re: [boost] bind/lambda - unsupported use case?

2003-08-14 Thread Brian McNamara
On Mon, Aug 11, 2003 at 10:54:40PM -0500, Aleksey Gurtovoy wrote: > Gary Powell wrote: > > >Consider the following snippet: > > > > > >void show_warning( message_dialog const&, user_message ); > > >void post_command( boost::function ); > > > > > >int main() > > >{ > > >boost

RE: [boost] bind/lambda - unsupported use case?

2003-08-14 Thread Powell, Gary
>Nope. Please see http://article.gmane.org/gmane.comp.lib.boost.devel/23466 >for the semantics clarification. Basically, I want the whole bind >expression to return an unary function object which, when invoked, will >use the argument to construct a nested nullary function object: >bind( &sho

[boost] bind/lambda - unsupported use case?

2003-08-14 Thread Aleksey Gurtovoy
Consider the following snippet: void show_warning( message_dialog const&, user_message ); void post_command( boost::function ); int main() { boost::function f( bind( &post_command , ( bind( &show_warning, message_dialog(), _1 ) ) //

RE: [boost] bind/lambda - unsupported use case?

2003-08-11 Thread Powell, Gary
>-Original Message- >From: Aleksey Gurtovoy [mailto:[EMAIL PROTECTED] >Sent: Friday, August 08, 2003 4:27 AM >To: Boost mailing list >Subject: [boost] bind/lambda - unsupported use case? >Consider the following snippet: > >void show_warning( message_dia

Re: [boost] bind/lambda - unsupported use case?

2003-08-10 Thread Aleksey Gurtovoy
Peter Dimov wrote: > Aleksey Gurtovoy wrote: > > Consider the following snippet: > > > > void show_warning( message_dialog const&, user_message ); > > void post_command( boost::function ); > > > > int main() > > { > > boost::function f( > > bind( &post_command

Re: [boost] bind/lambda - unsupported use case?

2003-08-09 Thread Peter Dimov
Aleksey Gurtovoy wrote: > Consider the following snippet: > > void show_warning( message_dialog const&, user_message ); > void post_command( boost::function ); > > int main() > { > boost::function f( > bind( &post_command > , ( bind( &show_w