|
Boost : |
From: Douglas Gregor (gregod_at_[hidden])
Date: 2001-11-30 08:48:36
On Friday 30 November 2001 04:52 am, you wrote:
> 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)
Ah yes, the const free function bug strikes again :) I won't be getting
around to updating Signals for at least a day or two, but if you want this to
work now you can:
1) clone the code in boost/signals/signal_template.hpp for the "connect"
method
2) Change the "const Slot&" argument type to "Slot*"
3) Stick this new version in a __BORLANDC__-wrapped section
Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk