Boost logo

Boost :

Subject: Re: [boost] [smart_ptr][thread][test] breaking change on shared_ptr operator bool.
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-12-10 10:27:45

On Mon, Dec 10, 2012 at 7:22 PM, Olaf van der Spek <ml_at_[hidden]> wrote:
> On Mon, Dec 10, 2012 at 4:17 PM, Andrey Semashev
> <andrey.semashev_at_[hidden]> wrote:
>>> What's the rationale for this breaking change?
>>> Isn't compatibility with previous Boost releases more important?
>> I'd consider implicit conversion to bool more a bug than a feature.
>> Just my 5 cents.
> Thanks for the cents, but I don't. So what's your point?

My point is that the code that relies on this behaviour is better be
fixed anyway and the change helps detecting such code. Peter has
already pointed out that standard pointers also behave that way, so in
the end the change improves portability.

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