Boost logo

Boost :

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


Hi Doug,

Still having a few problems with the signals library on Borland C++:

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

boost::signal<void, int> sig;

void test(int x)
{
    std::cout << x;
}

int main()
{
    sig.connect(test);
    return 0;
}

Error E2031
C:\PROGRA~1\Borland\CBUILD~\Bin\..\include\boost/function/function_template.
hpp 360: Cannot cast from 'void (*)(int) const' to 'void (*)()' in function
assign_to<void (* const)(int) const>(void (*)(int)
const,detail::function::function_ptr_tag)


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