Boost logo

Boost :

From: Steven Kirk (steven.kirk_at_[hidden])
Date: 2001-11-22 06:52:11


The following does not compile on Borland C++. I am getting very confused by
all the macros in signal_template.hpp, any idea what the problem is?

#include <boost/signal.hpp>
#include <iostream>
#include <string>

struct testSig {
    void operator()(std::string x)
    {
        std::cout << x << '\n';
    }
};

boost::signal<void, std::string> sig;

int main()
{
    sig.connect(testSig());
    sig("hello");

    return 0;
}

Error E2034
C:\PROGRA~1\Borland\CBUILD~1\Bin\..\include\boost/signals/signal_template.hp
p 217:
Cannot convert 'std::string' to 'detail::signals::args1<std::string,int>' in
function signal1<void,std::string,return_last_value<void> >::operator
()(std::string)

Warning W8057
C:\PROGRA~\Borland\CBUILD~1Bin\..\include\boost/signals/signal_template.hpp
223: Parameter 'a0' is never used in function
signal1<void,std::string,return_last_value<void> >::operator ()(std::string)
*** 1 errors in Compile ***


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk