title: Compilation issue with boost range copy of filesystem path
body: <p>The following code fails to compile with 1.58 while it was compiling with 1.46. I guess it's a type conversion issue, but I can't make it right.</p>
  
  <p><strong>my code</strong></p>
  
  <pre><code>#include &lt;boost/filesystem.hpp&gt;
  #include &lt;boost/range.hpp&gt;
  #include &lt;boost/range/algorithm.hpp&gt;
  #include &lt;boost/range/adaptors.hpp&gt;
  #include &lt;vector&gt;
  
  using namespace boost;
  using namespace filesystem;
  using namespace adaptors;
  
  int main(int argc, char ** argv)
  {
      recursive_directory_iterator beg = recursive_directory_iterator(".");
      recursive_directory_iterator end = recursive_directory_iterator();
  
      iterator_range&lt;recursive_directory_iterator&gt; files = 
          make_iterator_range(beg, end);
  
      std::function&lt;bool (path const &amp; path)&gt; fileFilter = 
          [](path const &amp; path) -&gt; bool {
          return is_regular_file(path);
      };
  
      std::vector&lt;path&gt; paths;
      copy(files | filtered(fileFilter), std::back_inserter(paths));
  
      // works:
      //copy(files, std::back_inserter(paths));
  
      // also works:
      //for(recursive_directory_iterator it = beg; it != end; ++it){
      //    if(fileFilter(*it)){
      //        paths.push_back(*it);
      //    }
      //}
  }
  </code></pre>
  
  <p><strong>Error message (VS2010)</strong></p>
  
  <blockquote>
    <p>Error 1   error C2664:
    'boost::filesystem::recursive_directory_iterator::recursive_directory_iterator(const
    boost::filesystem::path
    &amp;,boost::filesystem::symlink_option::enum_type)' : cannot convert
    parameter 1 from
    'boost::iterators::detail::postfix_increment_proxy' to
    'const boost::filesystem::path
    &amp;'    [...]\boost\1.58.0_32\include\boost-1_58\boost\range\concepts.hpp   201 1   [...]</p>
  </blockquote>
  
  <p>Can anyone help ?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Filed as <a href="https://svn.boost.org/trac/boost/ticket/11228" rel="nofollow">https://svn.boost.org/trac/boost/ticket/11228</a>.</p>