Boost logo

Boost Users :

From: Jean-Pierre Bergamin (james_at_[hidden])
Date: 2008-05-13 08:19:57


Hello boost-users

I just ran into quite a bad issue with boost::tribool. The overloaded
operators && and || may (and normally do) evaluate the righthand side of
logical expressions although not needed/permitted. They i.e. evaluate the
rhs expression in a conjunction where the first term is false.

This leads of course to very surprising results. IMHO, the provided
operators should be removed or should honor normal semantics.
Shall I issue a bug-report? I think the current situation is quite
unconvincingly.

Regards

James


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net