From 09789d201cfdfee41622e69e265f01e04039ca96 Mon Sep 17 00:00:00 2001 From: "Victor A. Wagner Jr." Date: Wed, 27 Apr 2005 08:18:59 +0000 Subject: [PATCH] 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] --- src/mapped_file.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mapped_file.cpp b/src/mapped_file.cpp index 1b320a3..0fb4e62 100755 --- a/src/mapped_file.cpp +++ b/src/mapped_file.cpp @@ -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