Re: [Boost-bugs] [Boost C++ Libraries] #1090: scoped_file class that deletes file at end of scope

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1090: scoped_file class that deletes file at end of scope
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-13 12:36:25


#1090: scoped_file class that deletes file at end of scope
---------------------------------------------+------------------------------
  Reporter: Marcus Lindblom <macke_at_[hidden]> | Owner:
      Type: Patches | Status: new
 Milestone: To Be Determined | Component: filesystem
   Version: | Severity: Not Applicable
Resolution: | Keywords:
---------------------------------------------+------------------------------
Comment (by Marcus Lindblom <macke_at_[hidden]>):

 Sorry! The shared_ptr impl should look like this:
 {{{
 #!cpp
 boost::shared_ptr<fs::path> removeFile(&file, bind(&fs::remove,
 boost::cref(file)));
 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1090#comment:1>
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:49:56 UTC