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()

    return 0;

Error E2034
p 217:
Cannot convert 'std::string' to 'detail::signals::args1<std::string,int>' in
function signal1<void,std::string,return_last_value<void> >::operator

Warning W8057
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, gregod at, cpdaniel at, john at