Boost logo

Boost Users :

Subject: [Boost-users] [Filesystem] v3 using wide url with boost::iostreams::mapped_file
From: Bibbo, Joe (Joe.Bibbo_at_[hidden])
Date: 2011-02-23 19:01:57


We recently flipped the switch from v2 to v3 of the boost file system. Now that boost:filesystem::wpath
is no longer a valid type, how do you work with the wide url and boost:iostreams::mapped_file?

With v2 we would
void doSomethingWithMapfile(std::wstring& url)
{
    boost::iostreams::basic_mapped_file_params<boost::filesystem::wpath> attribs;

    // initialize attribs, including

   attribs.path = url;

   // create our mapped file

   boost::iostreams::mapped_file mapFile(attribs);

   // An then do something with the map file.
}

Regards,

Joe



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net