Re: [fltk.general] Lambda function in FLTK how to use? (FLTK<->c++1x)

2011-10-14 Thread Ben Stott
On 14/10/11 21:37, Piotr Beling [qwak] wrote: > W dniu 11.10.2011 05:19, Ben Stott pisze: > >> my_button2->callback( [this] () { this->my_button1->label("xxx");} ); // I >> haven't specified the return type here; it will default to void. You could >> just as easily use "[this] () -> void {...}"

Re: [fltk.general] Lambda function in FLTK how to use? (FLTK<->c++1x)

2011-10-14 Thread Piotr Beling [qwak]
W dniu 11.10.2011 05:19, Ben Stott pisze: > my_button2->callback( [this] () { this->my_button1->label("xxx");} ); // I > haven't specified the return type here; it will default to void. You could > just as easily use "[this] () -> void {...}" This probably will not work, because [this] () { th

Re: [fltk.general] Lambda function in FLTK how to use? (FLTK <->c++1x)

2011-10-10 Thread Ben Stott
So as a follow up to my previous message. > > > You might actually have a bit of difficulty using a lambda function as a > > > callback, because to use some of their more powerful features (like > > > taking variable callback data) I *think* the FLTK callback functions > > > will have to

Re: [fltk.general] Lambda function in FLTK how to use? (FLTK <->c++1x)

2011-10-10 Thread Ben Stott
Tue, Oct 11, 2011 10:12 am Subject: [fltk.general] Lambda function in FLTK how to use? (FLTK <->c++1x) To: On 10/10/11 14:48, Ben Stott wrote: > You might actually have a bit of difficulty using a lambda function as a > callback, because to use some of their more powerful f

Re: [fltk.general] Lambda function in FLTK how to use? (FLTK <->c++1x)

2011-10-10 Thread Greg Ercolano
On 10/10/11 14:48, Ben Stott wrote: > You might actually have a bit of difficulty using a lambda function as a > callback, because to use some of their more powerful features (like > taking variable callback data) I *think* the FLTK callback functions > will have to be modified slightly. However

Re: [fltk.general] Lambda function in FLTK how to use? (FLTK <-> c++1x)

2011-10-10 Thread Ben Stott
On 11/10/11 05:44, Greg Ercolano wrote: > > Yaskhan writes: >> sorry. c++0x Being a pedant, I'll correct that to C++11. I've done the same with the title, as well. ;-) > I don't think anyone's tried using c++0x with fltk yet. > > Assuming c++0x is back compatible with C++ (I don't kno