Boost logo

Boost Users :

Subject: Re: [Boost-users] Small logic::tribool riddle
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2011-03-11 09:58:41


On 11.03.2011 15:44, Robert Jones wrote:
>
> only prints "reached3", so I can see the logic of second test being
> indeterminate rather than true, but then surely the comparing
> indeterminate
> with indeterminate should also be true?
>
Now that can only be called a bug. The problem here is that you're
comparing two indeterminate keywords, and they're of type
indeterminate_keyword_t, which is a function pointer type. No idea why.
But this means that it falls back to the built-in comparison operator,
which returns a plain true.

Sebastian


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