summaryrefslogtreecommitdiff
path: root/boost/interprocess/detail/file_wrapper.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/interprocess/detail/file_wrapper.hpp')
-rw-r--r--boost/interprocess/detail/file_wrapper.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/boost/interprocess/detail/file_wrapper.hpp b/boost/interprocess/detail/file_wrapper.hpp
index 58f28e97f8..99e0fea570 100644
--- a/boost/interprocess/detail/file_wrapper.hpp
+++ b/boost/interprocess/detail/file_wrapper.hpp
@@ -113,12 +113,13 @@ class file_wrapper
bool priv_open_or_create(ipcdetail::create_enum_t type, const char *filename, mode_t mode, const permissions &perm);
file_handle_t m_handle;
- mode_t m_mode;
- std::string m_filename;
+ mode_t m_mode;
+ std::string m_filename;
};
inline file_wrapper::file_wrapper()
- : m_handle(file_handle_t(ipcdetail::invalid_file()))
+ : m_handle(file_handle_t(ipcdetail::invalid_file()))
+ , m_mode(read_only), m_filename()
{}
inline file_wrapper::~file_wrapper()