Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9596: "logical âandâ of mutually exclusive tests is always false" error in random/linear_congruential.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-10 23:14:56
#9596: "logical âandâ of mutually exclusive tests is always false" error in
random/linear_congruential.hpp
-------------------------------+---------------------------
Reporter: a0smucig@⦠| Owner: no-maintainer
Type: Patches | Status: new
Milestone: To Be Determined | Component: random
Version: Boost 1.55.0 | Severity: Optimization
Resolution: | Keywords:
-------------------------------+---------------------------
Comment (by steven_watanabe):
The tests are mutually exclusive for unsigned types. The problem is that
the expression is always false for unsigned type, but is needed for signed
types. When I wrote it, using _x <= 0 && x != 0 was sufficient to avoid a
warning, but apparently that's no longer the case.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9596#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:15 UTC