Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5931: numeric::interval equal comparison is strange
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-23 17:46:56
#5931: numeric::interval equal comparison is strange
----------------------------------------------+-----------------------------
Reporter: Per Karlström <perk@â¦> | Owner: bgubenko
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: interval
Version: Boost 1.47.0 | Severity: Showstopper
Resolution: invalid | Keywords:
----------------------------------------------+-----------------------------
Changes (by steven_watanabe):
* status: new => closed
* resolution: => invalid
Comment:
The behavior is correct. Think of interval as representing
some number in the range [low, high] whose exact value is
unknown. Then (I1 == I2) returns true iff every value in I1
is equal to every value in I2. This, of course, can only happen
when both intervals contain a single element. It returns
false if I1 and I2 do not overlap at all. In all other
cases it throws an exception, because it's impossible
to determine whether the values are equal.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5931#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC