Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9929: Bugfix: comparison involving different types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-20 07:21:19
#9929: Bugfix: comparison involving different types
--------------------------------------+------------------------
Reporter: gonzalobg88@⦠| Owner: neilgroves
Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+------------------------
Comment (by gonzalobg88@â¦):
But does it say that user-defined signed integer types are not allowed?
This is just debug code (inside a BOOST_ASSERT), and IMO the problem here
is relying on implicit conversions.
Why is this debug code comparing a difference_type which is typically
std::ptrdiff_t with an int? Doesn't it make sense to construct a
difference_type since it is going to be compared with one anyways?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9929#comment:2> 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:16 UTC