Boost logo

Boost :

From: Steven Kirk (steven.kirk_at_[hidden])
Date: 2001-11-30 09:10:18


Thanks Doug. I'd actually already fixed it for the moment by changing the
reinterpret_cast
to a c-style cast which removes the const-ness without complaining.

> 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
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>


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