Boost logo

Boost :

Subject: Re: [boost] [config] call to destructor of temporary
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-10-15 04:53:05

On Mon, Oct 15, 2012 at 12:45 PM, John Maddock <boost.regex_at_[hidden]> wrote:
>> I have had some trouble debugging some code with clang-2.9 c++0x. The
>> reason was a known bug on the compiler as it doesn't call the destructor of
>> temporaries at the end of the expression.
>> Is there a macro stating this missing feature?
> No, because no one has ever mentioned it before.
> Besides it's not a missing feature, it's a pretty compiler specific serious
> bug, so I suggest a BOOST_WORKAROUND - if such a workaround is even possible
> in that case :-(

FWIW, I remember Sun Pro compiler also had similar behavior, only it
was fixable with a compiler switch.

Boost list run by bdawes at, gregod at, cpdaniel at, john at