> As to your suggestion: I don't think you can overload connect()  
> specifically for a lambda with a specific signature ?

No, but it's possible to check at compile time whether a function 
object is callable with a particular set of argument types, and 
dispatch to different implementations based on the result. If you 
think this is a reasonable approach, I'm happy to write some 
proof-of-concept code to demonstrate.

> As to how you can make it work: you can use std::bind() to bind away  
> the argument. See for example the second example at : 
> http://www.webtoolkit.eu/widgets/forms/push-button 

I think it would be nice if Wt did this adaptation step.

Regards,
Nate
                                          
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to