Wt::Signal demo code does not compile under Mac OS X 10.6.2, gcc 4.2.1
The sample code on http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1Signal.html does not compile with Mac OS X 10.6.2, gcc 4.2.1 The compiler complains:
In member function 'void GUIClass::init()':
src/signaldemo.cpp:32: error: no matching function for call to 'Wt::Signal<int, std::basic_string<char, std::char_traits, std::allocator >, Wt::NoClass, Wt::NoClass, Wt::NoClass, Wt::NoClass>::connect(GUIClass* const, void (GUIClass::*)(int, std::string&))'
Updated by Koen Deforche almost 13 years ago
I have fixed this (i.e. WSignal) in our development branch.
In the meanwhile, you can build theexample (if you hadn't found out yet) by changing the signature of whenDone() to have as second argument a 'std::string' instead of a 'const std::string&'.