
20 May
2008
20 May
'08
2:13 p.m.
Alex MDC schrieb:
Is this by design and do I have to access the tribool's 'value' member directly?
I wouldn't say it's "by design" - rather it's an unfortunate limitation of C++ that overloaded boolean operators cannot emulate the short-circuiting behaviour as with builtin types.
Hmm, I didn't look thoroughly at it but wouldn't it be possible to remove these overloads? I've seen a proposal for bool_set that doesn't overload (anymore) the two logical operators. -- Klaus