Boost logo

Boost :

Subject: Re: [boost] Boost.Fiber review January 6-15
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2014-01-11 21:45:55


On Jan 11, 2014, at 11:33 AM, Nat Goodspeed <nat_at_[hidden]> wrote:

> On Sat, Jan 11, 2014 at 11:18 AM, Rob Stewart <robertstewart_at_[hidden]> wrote:
>
>> On Jan 11, 2014, at 11:01 AM, Nat Goodspeed <nat_at_[hidden]> wrote:
>>
>>> the bad case is when class X and class Y provide operator bool. A coder inadvertently writes:
>>>
>>> if (myXinstance == myYinstance) ...
>
>> That isn't an issue when the conversion operator is explicit, which Vicente suggested.
>
> http://permalink.gmane.org/gmane.comp.lib.boost.devel/248167

I understand that Oliver was trying for C++03 compatibility, but Vicente suggested an explicit conversion operator, and Oliver apparently didn't understand that. Furthermore, I think Vicente suggested conditional compilation to use the C++11 feature when available.

___
Rob

(Sent from my portable computation engine)


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