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-30 10:55:33


#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@…>):

 Actually I was talking rubbish earlier, we /can/ use enable_if in the
 operator because it can wrap any type you pass as the second template
 param. I've wrapped all the return types in question with an enable_if
 using the new struct ptr_container_detail::is_compatible.

 My own tests and those in /libs/ptr_container/test all check out fine,
 error messages are helpful and appear for the offending line of user code.

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