Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73248 - sandbox/mmap/boost/mmap
From: dsaritz_at_[hidden]
Date: 2011-07-20 03:58:28


Author: psiha
Date: 2011-07-20 03:58:27 EDT (Wed, 20 Jul 2011)
New Revision: 73248
URL: http://svn.boost.org/trac/boost/changeset/73248

Log:
Made the mapped_view class template noncopyable.
Text files modified:
   sandbox/mmap/boost/mmap/memory_mapping.hpp | 11 ++++++++++-
   1 files changed, 10 insertions(+), 1 deletions(-)

Modified: sandbox/mmap/boost/mmap/memory_mapping.hpp
==============================================================================
--- sandbox/mmap/boost/mmap/memory_mapping.hpp (original)
+++ sandbox/mmap/boost/mmap/memory_mapping.hpp 2011-07-20 03:58:27 EDT (Wed, 20 Jul 2011)
@@ -421,11 +421,20 @@
 
 
 template <typename Element>
-class mapped_view : public mapped_view_reference<Element>
+class mapped_view
+ :
+ public mapped_view_reference<Element>
+ #ifdef BOOST_MSVC
+ ,private noncopyable
+ #endif // BOOST_MSVC
 {
 public:
     mapped_view( boost::mapped_view_reference<Element> const range ) : boost::mapped_view_reference<Element>( range ) {}
     ~mapped_view<Element>() { boost::mapped_view_reference<Element>::unmap( *this ); }
+
+ #ifndef BOOST_MSVC
+ mapped_view( mapped_view const & ); // Noncopyable
+ #endif // BOOST_MSVC
 };
 
 basic_mapped_view_ref map_file ( char const * file_name, std::size_t desired_size );


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