mirror of
https://github.com/boostorg/iostreams.git
synced 2026-02-22 15:32:20 +00:00
Changed - again the open method
you have to call something _other_ than yourself to get stuff done
I used the open_sink methods near the end of the file as a template
this uses BOOST_IOS::in instead of BOOST_IOS::out but other than that
they're essentially identical.
[SVN r28502]
This commit is contained in:
@@ -110,7 +110,11 @@ void mapped_file_source::open( const std::string& path,
|
||||
mapped_file_source::size_type length,
|
||||
boost::intmax_t offset )
|
||||
{
|
||||
open(path, length, offset);
|
||||
mapped_file_params p(path);
|
||||
p.mode = BOOST_IOS::in;
|
||||
p.length = length;
|
||||
p.offset = offset;
|
||||
open_impl(p);
|
||||
}
|
||||
|
||||
mapped_file_source::size_type mapped_file_source::size() const
|
||||
|
||||
Reference in New Issue
Block a user