Ticket #884: mapped_file.hpp.diff

File mapped_file.hpp.diff, 1.0 KB (added by farid_zaripov <faridz@…>, 15 years ago)

The proposed patch

  • mapped_file.hpp

    old new  
    6262
    6363struct mapped_file_params {
    6464    explicit mapped_file_params()
    65         : mode(), offset(0), length(static_cast<std::size_t>(-1)),
     65#if BOOST_WORKAROUND(BOOST_MSVC, < 1400) && defined(BOOST_RWSTD_VER)
     66        : mode(std::ios_base::openmode(0)),
     67#else
     68        : mode(),
     69#endif
     70          offset(0), length(static_cast<std::size_t>(-1)),
    6671          new_file_size(0), hint(0)
    6772        { }
    6873    explicit mapped_file_params(const std::string& path)
    69         : path(path), mode(), offset(0),
    70           length(static_cast<std::size_t>(-1)),
     74        : path(path),
     75#if BOOST_WORKAROUND(BOOST_MSVC, < 1400) && defined(BOOST_RWSTD_VER)
     76          mode(std::ios_base::openmode(0)),
     77#else
     78          mode(),
     79#endif
     80          offset(0), length(static_cast<std::size_t>(-1)),
    7181          new_file_size(0), hint(0)
    7282        { }
    7383    std::string          path;