io: default mapped_file to read only
This is vastly safer compared to write by default. No more unexpectedly changing files.
This commit is contained in:
parent
84ca008305
commit
abfe4daac3
2
io.hpp
2
io.hpp
@ -127,7 +127,7 @@ namespace util {
|
||||
int access_to_flags (access_t);
|
||||
|
||||
public:
|
||||
mapped_file (const boost::filesystem::path &path, access_t access = ACCESS_READWRITE);
|
||||
mapped_file (const boost::filesystem::path &path, access_t access = ACCESS_READ);
|
||||
|
||||
mapped_file (const mapped_file&) = delete;
|
||||
mapped_file& operator= (const mapped_file&) = delete;
|
||||
|
Loading…
Reference in New Issue
Block a user