Re: [Boost-bugs] [Boost C++ Libraries] #12578: Crash with boost::filesystem's directory_iterator and recursive_directory_iterator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12578: Crash with boost::filesystem's directory_iterator and recursive_directory_iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-21 17:35:25


#12578: Crash with boost::filesystem's directory_iterator and
recursive_directory_iterator
-------------------------------+------------------------
  Reporter: anonymous | Owner: bemandawes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: filesystem
   Version: Boost 1.61.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+------------------------

Comment (by Charles Olivi <charles.olivi@…>):

 Hi,

 Yep it's indeed the shared pointer that does the job for the single pass
 iterator used and described here:
 http://www.boost.org/doc/libs/1_55_0/doc/html/InputIterator.html

 I'm not the maintainer of boost.org/filesystem, I'm pretty sure your fix
 will be discarded.

 If you really want to do it with shared_ptr you probably need a copy
 constructor based on [ {std::move; std::make_shared} / boost::make_shared
 ] and operator= based on std::swap.

 Thanks,
 Charles

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12578#comment:6>
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:20 UTC