|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82434 - in trunk: boost/interprocess libs/interprocess/doc
From: igaztanaga_at_[hidden]
Date: 2013-01-10 15:06:23
Author: igaztanaga
Date: 2013-01-10 15:06:22 EST (Thu, 10 Jan 2013)
New Revision: 82434
URL: http://svn.boost.org/trac/boost/changeset/82434
Log:
Fixes #7484
Text files modified:
trunk/boost/interprocess/file_mapping.hpp | 6 ++++--
trunk/boost/interprocess/shared_memory_object.hpp | 2 ++
trunk/libs/interprocess/doc/interprocess.qbk | 6 ++++++
3 files changed, 12 insertions(+), 2 deletions(-)
Modified: trunk/boost/interprocess/file_mapping.hpp
==============================================================================
--- trunk/boost/interprocess/file_mapping.hpp (original)
+++ trunk/boost/interprocess/file_mapping.hpp 2013-01-10 15:06:22 EST (Thu, 10 Jan 2013)
@@ -52,6 +52,7 @@
//!Does not throw
file_mapping(BOOST_RV_REF(file_mapping) moved)
: m_handle(file_handle_t(ipcdetail::invalid_file()))
+ , m_mode(read_only)
{ this->swap(moved); }
//!Moves the ownership of "moved"'s file mapping to *this.
@@ -95,13 +96,14 @@
//!Closes a previously opened file mapping. Never throws.
void priv_close();
file_handle_t m_handle;
- mode_t m_mode;
- std::string m_filename;
+ mode_t m_mode;
+ std::string m_filename;
/// @endcond
};
inline file_mapping::file_mapping()
: m_handle(file_handle_t(ipcdetail::invalid_file()))
+ , m_mode(read_only)
{}
inline file_mapping::~file_mapping()
Modified: trunk/boost/interprocess/shared_memory_object.hpp
==============================================================================
--- trunk/boost/interprocess/shared_memory_object.hpp (original)
+++ trunk/boost/interprocess/shared_memory_object.hpp 2013-01-10 15:06:22 EST (Thu, 10 Jan 2013)
@@ -81,6 +81,7 @@
//!Does not throw
shared_memory_object(BOOST_RV_REF(shared_memory_object) moved)
: m_handle(file_handle_t(ipcdetail::invalid_file()))
+ , m_mode(read_only)
{ this->swap(moved); }
//!Moves the ownership of "moved"'s shared memory to *this.
@@ -144,6 +145,7 @@
inline shared_memory_object::shared_memory_object()
: m_handle(file_handle_t(ipcdetail::invalid_file()))
+ , m_mode(read_only)
{}
inline shared_memory_object::~shared_memory_object()
Modified: trunk/libs/interprocess/doc/interprocess.qbk
==============================================================================
--- trunk/libs/interprocess/doc/interprocess.qbk (original)
+++ trunk/libs/interprocess/doc/interprocess.qbk 2013-01-10 15:06:22 EST (Thu, 10 Jan 2013)
@@ -6711,6 +6711,12 @@
[section:release_notes Release Notes]
+[section:release_notes_boost_1_54_00 Boost 1.54 Release]
+
+* Fixed bug [@https://svn.boost.org/trac/boost/ticket/7484 #7484].
+
+[endsect]
+
[section:release_notes_boost_1_53_00 Boost 1.53 Release]
* Fixed GCC -Wshadow warnings.
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