|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74328 - sandbox/mmap/boost/mmap/mapped_view
From: dsaritz_at_[hidden]
Date: 2011-09-09 11:55:03
Author: psiha
Date: 2011-09-09 11:55:02 EDT (Fri, 09 Sep 2011)
New Revision: 74328
URL: http://svn.boost.org/trac/boost/changeset/74328
Log:
Minor refactoring.
Text files modified:
sandbox/mmap/boost/mmap/mapped_view/mapped_view.hpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: sandbox/mmap/boost/mmap/mapped_view/mapped_view.hpp
==============================================================================
--- sandbox/mmap/boost/mmap/mapped_view/mapped_view.hpp (original)
+++ sandbox/mmap/boost/mmap/mapped_view/mapped_view.hpp 2011-09-09 11:55:02 EDT (Fri, 09 Sep 2011)
@@ -208,7 +208,7 @@
#endif // BOOST_MSVC
{
public:
- mapped_view( mapped_view_reference<Element, Impl> const range ) : mapped_view_reference<Element, Impl>( range ) {}
+ explicit mapped_view( mapped_view_reference<Element, Impl> const range ) : mapped_view_reference<Element, Impl>( range ) {}
~mapped_view() { mapped_view_reference<Element, Impl>::unmap( *this ); }
#ifndef BOOST_MSVC
@@ -216,7 +216,8 @@
#endif // BOOST_MSVC
};
-typedef mapped_view<char> basic_mapped_view;
+typedef mapped_view<char > basic_mapped_view;
+typedef mapped_view<char const> basic_read_only_mapped_view;
//------------------------------------------------------------------------------
} // namespace mmap
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