[Boost-bugs] [Boost C++ Libraries] #11785: specializing boost::range_const_iterator has no effect on boost::has_range_iterator

Subject: [Boost-bugs] [Boost C++ Libraries] #11785: specializing boost::range_const_iterator has no effect on boost::has_range_iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-05 11:29:51


#11785: specializing boost::range_const_iterator has no effect on
boost::has_range_iterator
---------------------------------+------------------------
 Reporter: Tobias Reh <treh@…> | Owner: neilgroves
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
---------------------------------+------------------------
 see the following code:

 {{{#!c++
 #include <boost/range/has_range_iterator.hpp>
 #include <boost/filesystem.hpp>
 #include <boost/filesystem/operations.hpp> // specializes
 range_const_iterator

 using ConstDirIter
   =
 boost::range_const_iterator<boost::filesystem::directory_iterator>::type;
 // this compiles

 static_assert(
   boost::has_range_const_iterator<
     boost::filesystem::directory_iterator
>::value,
   "This does not compile!!!"
 );

 }}}

 See https://github.com/boostorg/range/pull/40 for a fix.

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