Boost logo

Boost :

From: Steven Kirk (steven.kirk_at_[hidden])
Date: 2001-11-22 09:45:36


Also on Borland C++, compiling:

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

void test_sig(int x)
{
    std::cout << x << '\n';
}

boost::signal<void, int> sig;

int main()
{
    sig.connect(test_sig);
    sig(5);

    return 0;
}

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