Project

General

Profile

Actions

Bug #202

closed

Wt::Signal demo code does not compile under Mac OS X 10.6.2, gcc 4.2.1

Added by Anonymous over 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
12/02/2009
Due date:
% Done:

0%

Estimated time:

Description

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&))'


Files

signaldemo.cpp (872 Bytes) signaldemo.cpp Anonymous, 12/02/2009 11:55 PM
Actions #1

Updated by Koen Deforche over 14 years ago

Ooops...

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&'.

Actions #2

Updated by Koen Deforche over 14 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
Actions #3

Updated by Koen Deforche about 14 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF