Project

General

Profile

Support #4648

Ambiguous method call boost::signals::connection/boost::signals2::connection

Added by Csaba Kutor over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01/03/2016
Due date:
% Done:

0%

Estimated time:

Description

Hello,

I need your kind help to figure out how could this issue be fixed in the Hello World application presented on official website. I have spent long time to find the answer, but nowhere in the forum nor in google search found the answer.

The are 2 method calls:

button->clicked().connect(this, &HelloApplication::greet);

nameEdit_->enterPressed().connect

(boost::bind(&HelloApplication::greet, this));

Whenever I start the compiler it is complaining about:

'connect' is ambiguous '

Candidates are:

boost::signals2::connection connect(const boost::_bi::bind_t<void,boost::_mfi::mf0<void,HelloApplication>,boost::_bi::list1<boost::_bi::value<HelloApplication *>>> &)

boost::signals::connection connect(const boost::_bi::bind_t<void,boost::_mfi::mf0<void,HelloApplication>,boost::_bi::list1<boost::_bi::value<HelloApplication *>>> &)

' main.cpp /test line 70 Semantic Error

'connect' is ambiguous '

Candidates are:

boost::signals2::connection connect(HelloApplication , void (HelloApplication::)())

boost::signals::connection connect(HelloApplication , void (HelloApplication::)())

' main.cpp /test line 65 Semantic Error

As far as understand this boost package is critical in Wt event handling mechanism so I am stucked a bit in the learning process.

The first time when I installed the framework from precompiled deb package there was only a warning about boost signals but the program could run. When I compiled the 3.3.5 package this sort of issue arised.

I would really appreciate if someone could publish the right syntax.

Thank you,

Csaba Kutor

Also available in: Atom PDF