|
Boost-Commit : |
From: technews_at_[hidden]
Date: 2007-12-25 20:37:09
Author: turkanis
Date: 2007-12-25 20:37:09 EST (Tue, 25 Dec 2007)
New Revision: 42306
URL: http://svn.boost.org/trac/boost/changeset/42306
Log:
applied patch to resolve issue #884
Text files modified:
branches/iostreams_dev/boost/iostreams/device/mapped_file.hpp | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
Modified: branches/iostreams_dev/boost/iostreams/device/mapped_file.hpp
==============================================================================
--- branches/iostreams_dev/boost/iostreams/device/mapped_file.hpp (original)
+++ branches/iostreams_dev/boost/iostreams/device/mapped_file.hpp 2007-12-25 20:37:09 EST (Tue, 25 Dec 2007)
@@ -62,12 +62,22 @@
struct mapped_file_params {
explicit mapped_file_params()
- : mode(), offset(0), length(static_cast<std::size_t>(-1)),
+ #if BOOST_WORKAROUND(BOOST_MSVC, < 1400) && defined(BOOST_RWSTD_VER)
+ : mode(std::ios_base::openmode(0)),
+ #else
+ : mode(),
+ #endif
+ offset(0), length(static_cast<std::size_t>(-1)),
new_file_size(0), hint(0)
{ }
explicit mapped_file_params(const std::string& path)
- : path(path), mode(), offset(0),
- length(static_cast<std::size_t>(-1)),
+ : path(path),
+ #if BOOST_WORKAROUND(BOOST_MSVC, < 1400) && defined(BOOST_RWSTD_VER)
+ mode(std::ios_base::openmode(0)),
+ #else
+ mode(),
+ #endif
+ offset(0), length(static_cast<std::size_t>(-1)),
new_file_size(0), hint(0)
{ }
std::string path;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk