Boost logo

Boost :

From: AlisdairM (alisdair.meredith_at_[hidden])
Date: 2006-01-24 02:54:22


AlisdairM wrote:

> The latest optimizations in the function library break on the Borland
> compiler, which does not recognise a destructor when explicitly
> invoked through a typedef.
>
> I don't have a patch for this one yet, just a quick heads-up.
> In the worst case, could we add a BOOST_WORKAROUND with the old
> behaviour?
>
> I hope to have a better answer later this week though...

Actually, the patch appears easier than I first thought.

cvs diff -wb -- boost\function\function_base.hpp (in directory
E:\sourceforge\devel\boost\)
Index: boost/function/function_base.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/function/function_base.hpp,v
retrieving revision 1.86
diff -w -b -r1.86 function_base.hpp
288a289,291
> #if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x581) )
> out_functor->~Functor();
> #else
289a293
> #endif

-- 
AlisdairM

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