--- mapped_file.hpp Mon Nov 28 20:55:32 2005 +++ D:\_Libs\boost_1_33_1\boost\iostreams\device\mapped_file.hpp Tue Apr 03 23:10:48 2007 @@ -62,12 +62,22 @@ struct mapped_file_params { explicit mapped_file_params() - : mode(), offset(0), length(static_cast(-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(-1)), new_file_size(0), hint(0) { } explicit mapped_file_params(const std::string& path) - : path(path), mode(), offset(0), - length(static_cast(-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(-1)), new_file_size(0), hint(0) { } std::string path;