Re: [Boost-bugs] [Boost C++ Libraries] #6888: range::unique does not forward predicate

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6888: range::unique does not forward predicate
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-10 14:29:35


#6888: range::unique does not forward predicate
-------------------------------------+--------------------------------------
  Reporter: andy@… | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords: range unique
-------------------------------------+--------------------------------------

Comment (by andy@…):

 I also changed the signature of the function accepting a const range&,
 range/algorithm/unique.hpp:96

 {{{
 inline BOOST_DEDUCED_TYPENAME range_return<const ForwardRange,
 return_begin_found>::type
 }}}

 That is in line with the other overloads, and I couldn't get the newer
 tests to work without that.

 Additionally, in the unique.cpp tests, the predicate being used was
 incorrect - it was using std::less and std::greater for comparing
 equality. I changed them to be using std::equal_to

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6888#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:09 UTC