Hi,

this code:

Fl_Button *pBtn = new Fl_Button(...);
pBtn->callback( [](Fl_Widget *w, void *u ) {printf(...);} );

compiles fine with gcc but won't with vc10.
Error message says something like "can't convert lambda to Fl_Callback*".

Does anybody know the reason? Is there a way to use lambdas with FLTK callbacks 
on Windows?

Thank you

testalucida
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to