Re: [Boost-bugs] [Boost C++ Libraries] #5963: Patch [Fixes #5961]: Disallow comparisons of differing iterator types in ptr_container

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 16:14:11


#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 Rob Desbois <rob.desbois@…>):

 Ah yes, didn't think of the number of resulting types that would be
 generated..

 Using enable_if<> etc. as you suggest looks good. Since we can't use
 enable_if<> either as a dummy parameter (since these are binary operators)
 or as the return value (since we're using it) I'd suggest we create a
 helper traits that defines non-operator equivalents of these operations.
 Would you agree that's the way to go?

 (NB: we technically /could/ put enable_if<> in the return, but that would
 make for a horrible public interface.)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5963#comment:3>
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