Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6276: is_sorted() concept check fails in eval_if<>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-15 12:37:32
#6276: is_sorted() concept check fails in eval_if<>
--------------------------------------+-------------------------------------
Reporter: JonT | Owner: neilgroves
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: range
Version: Boost Development Trunk | Severity: Regression
Resolution: invalid | Keywords: is_sorted eval_if
--------------------------------------+-------------------------------------
Changes (by neilgroves):
* status: new => closed
* resolution: => invalid
Comment:
This isn't a defect. The compile-log shows a reasonably clear indication
that iterators are being based in to an algorithm that requires a model of
the SinglePassRange concept.
Your code should read:
if (!boost::is_sorted(myVec))
{
}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6276#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:09 UTC