|
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:17:04
On Mon, Dec 10, 2012 at 7:13 PM, Olaf van der Spek <ml_at_[hidden]> wrote:
> On Sat, Dec 8, 2012 at 12:44 PM, Vicente J. Botet Escriba
> <vicente.botet_at_[hidden]> wrote:
>> Le 08/12/12 12:11, Vicente J. Botet Escriba a écrit :
>>
>>> Hi,
>>>
>>> https://svn.boost.org/trac/boost/changeset/81780 " Use explicit operator
>>> bool when available; ..." introduces a breaking change on shared_ptr in
>>> Boost.Thread and Boost.Test at least.
>>> I would preferred if this breaking change was announced and why not added
>>> conditionally so that the user could move smoothly to the new semantic.
>>>
>>> Anyway, I wanted to make this evident so that the Boost maintainer using
>>> this facility fixes their code as soon as possible.
>
> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk