Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4485: boost.filesysten v3 breaks boost:::iostream::mapped_file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-02 21:07:53
#4485: boost.filesysten v3 breaks boost:::iostream::mapped_file
--------------------------------------+-------------------------------------
Reporter: ttan@⦠| Owner: turkanis
Type: Patches | Status: new
Milestone: Boost 1.44.0 | Component: iostreams
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: filesysten v3 iostream mapped_file
--------------------------------------+-------------------------------------
Comment (by Jeff Flinn <jflinn@â¦>):
The previously attached filesystem_v3_path_adapter.hpp file allows boost
filesystem V3 path to be used with file_descriptor* and mapped_file*
classes. I've tested this on Windows MSVC8 & Mac XCode 3.1.2/gcc 4.0.1
with utf8 paths. On windows it makes the wide CreateFileW interface
accessible for opening unicode path'd files. Example usage:
#include <boost/iostreams/device/mapped_file.hpp>
#include <boost/iostreams/filesystem_v3_path_adapter.hpp>
...
boost::filesystem::path p(...);
namespace io = boost::iostreams;
io::mapped_file_source mf_src(io::filesystem_v3_path_adapter(p));
...
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4485#comment:2> 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:05 UTC