[Boost-bugs] [Boost C++ Libraries] #11528: MSVS 2015 + boost::range: STL and Boost iterators

Subject: [Boost-bugs] [Boost C++ Libraries] #11528: MSVS 2015 + boost::range: STL and Boost iterators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-06 14:16:17


#11528: MSVS 2015 + boost::range: STL and Boost iterators
--------------------------------------+------------------------
 Reporter: Dennis Schneider <dsr@…> | Owner: neilgroves
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
--------------------------------------+------------------------
 The attached test program compiled with MSVS 2013, but doesn't with
 MSVS2015 in debug mode and Boost-trunk as of 2015-08-05. The
 `transform_iterator` is recognised as Boost foward iterator, but only as
 STL input iterator because its reference type is `int`.
 Since `boost::max_element` uses `std::max_element`, it doesn't compile in
 debug mode with:
 {{{
 c:\program files (x86)\microsoft visual studio
 14.0\vc\include\xutility(1005): error C2338: next requires forward
 iterator
 }}}

 I'd be happy if this code compiled and worked, or if otherwise the Boost
 assertion would fire because the transform iterator is not a Boost forward
 traversal iterator.

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