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] () {

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 {...} This probably

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 know

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
11, 2011 10:12 am Subject: [fltk.general] Lambda function in FLTK how to use? (FLTK -c++1x) To: fltk@easysw.com 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

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 be modified