Boost logo

Boost :

From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2008-03-22 20:07:24


Hi Frank,
Your solution works perfectly on all our platforms, in addition to being
nicer than the type holder trick. Thanks for the quick fix!
Ralf

----- Original Message ----
From: Frank Mori Hess <fmhess_at_[hidden]>
To: boost_at_[hidden]
Sent: Friday, March 21, 2008 5:11:52 PM
Subject: Re: [boost] [shared_ptr] gcc 3.2 build broken with current trunk

On Friday 21 March 2008 18:53, Ralf W. Grosse-Kunstleve wrote:
> Hi Frank,
>
> Your patch resolves the error I posted before, but there are still
> other, similar errors while compiling other Boost.Python sources. I
> think this is the problem:
>
> shared_ptr.hpp:
> if(del_wrapper) del = del_wrapper->get_deleter<D>();
> ^^^
> ^^^
> I think gcc 3.2 doesn't support this syntax. In the old days this was a
> common problem. The usual workaround is to use a type holder. See the
> patch below, which resolves all my compilation errors.

I put a different workaround in svn a little while ago (fully qualified the
get_deleter call) which allowed get_deleter to compile with gcc 2.95. Is
the type holder solution more effective?

-- 
Frank

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