Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5963: Patch [Fixes #5961]: Disallow comparisons of differing iterator types in ptr_container
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-29 14:21:16
#5963: Patch [Fixes #5961]: Disallow comparisons of differing iterator types in
ptr_container
--------------------------------------------------+-------------------------
Reporter: Rob Desbois <rob.desbois@â¦> | Owner: nesotto
Type: Patches | Status: new
Milestone: To Be Determined | Component: ptr_container
Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords: iterator, type, compare
--------------------------------------------------+-------------------------
Comment (by anonymous):
Hi,
Thanks for the patch. However, I do not think its the right way to do it.
I think it generates too many iterator types, and I think there must be a
much simpler fix.
I'm thinking out of the box, partially because I cannot remember why the
code takes parameters U and T. Maybe it is because that U and T are always
either X or const X.
That is, it may be possible to fix the problem by using enable_if<> that
requires that
is_same< remove_const<U>, remove_const<T> >::value is true.
-Thorsten
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5963#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:07 UTC