Opened 7 years ago

#11785 new Bugs

specializing boost::range_const_iterator has no effect on boost::has_range_iterator

Reported by: Tobias Reh <treh@…> Owned by: Neil Groves
Milestone: To Be Determined Component: range
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description

see the following code:

#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.

Change History (0)

Note: See TracTickets for help on using tickets.