12 Jan
2014
12 Jan
'14
2:45 a.m.
On Jan 11, 2014, at 11:33 AM, Nat Goodspeed
On Sat, Jan 11, 2014 at 11:18 AM, Rob Stewart
wrote: On Jan 11, 2014, at 11:01 AM, Nat Goodspeed
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)