|
Boost-Commit : |
From: igaztanaga_at_[hidden]
Date: 2008-05-23 18:29:33
Author: igaztanaga
Date: 2008-05-23 18:29:32 EDT (Fri, 23 May 2008)
New Revision: 45695
URL: http://svn.boost.org/trac/boost/changeset/45695
Log:
#1912: some copy edits on boost.intrusive
#1932: move semantics for shared objects
#1635: Incomplete include guard in boost/intrusive
Text files modified:
trunk/boost/interprocess/windows_shared_memory.hpp | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
Modified: trunk/boost/interprocess/windows_shared_memory.hpp
==============================================================================
--- trunk/boost/interprocess/windows_shared_memory.hpp (original)
+++ trunk/boost/interprocess/windows_shared_memory.hpp 2008-05-23 18:29:32 EDT (Fri, 23 May 2008)
@@ -83,7 +83,7 @@
//!Does not throw
#ifndef BOOST_INTERPROCESS_RVALUE_REFERENCE
windows_shared_memory
- (detail::moved_object<windows_shared_memory> &moved)
+ (detail::moved_object<windows_shared_memory> moved)
{ this->swap(moved.get()); }
#else
windows_shared_memory(windows_shared_memory &&moved)
@@ -95,7 +95,7 @@
//!Does not throw
#ifndef BOOST_INTERPROCESS_RVALUE_REFERENCE
windows_shared_memory &operator=
- (detail::moved_object<windows_shared_memory> &moved)
+ (detail::moved_object<windows_shared_memory> moved)
{
windows_shared_memory tmp(moved);
this->swap(tmp);
@@ -235,6 +235,18 @@
}
}
+///@cond
+
+//!Trait class to detect if a type is
+//!movable
+template<>
+struct is_movable<windows_shared_memory>
+{
+ static const bool value = true;
+};
+
+///@endcond
+
} //namespace interprocess {
} //namespace boost {
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