Various standards-conformance fixes for Boost.Interprocess.

[SVN r61665]
This commit is contained in:
Douglas Gregor
2010-04-29 00:36:35 +00:00
parent 768284dc67
commit 502ebea876
4 changed files with 6 additions and 6 deletions

View File

@@ -16,12 +16,12 @@
#ifdef BOOST_MOVE_IN_INTERPROCESS
#define INCLUDE_BOOST_CONTAINER_MOVE_HPP <boost/interprocess/detail/move.hpp >
#define INCLUDE_BOOST_CONTAINER_MOVE_HPP <boost/interprocess/detail/move.hpp>
#define BOOST_CONTAINER_MOVE_NAMESPACE boost::interprocess
#else
#define INCLUDE_BOOST_CONTAINER_MOVE_HPP <boost/move/move.hpp >
#define INCLUDE_BOOST_CONTAINER_MOVE_HPP <boost/move/move.hpp>
#define BOOST_CONTAINER_MOVE_NAMESPACE boost
#endif

View File

@@ -51,7 +51,7 @@ struct operator_arrow_proxy<T&>
// This function is needed for MWCW and BCC, which won't call operator->
// again automatically per 13.3.1.2 para 8
// operator T*() const { return &m_value; }
mutable T &m_value;
T &m_value;
};
template <class Iterator, class UnaryFunction>

View File

@@ -682,7 +682,7 @@ class basic_managed_memory_impl
template<class T>
typename allocator<T>::type
get_allocator()
{ return mp_header->get_allocator<T>(); }
{ return mp_header->BOOST_NESTED_TEMPLATE get_allocator<T>(); }
//!This is the default deleter to delete types T
//!from this managed segment.
@@ -697,7 +697,7 @@ class basic_managed_memory_impl
template<class T>
typename deleter<T>::type
get_deleter()
{ return mp_header->get_deleter<T>(); }
{ return mp_header->BOOST_NESTED_TEMPLATE get_deleter<T>(); }
/// @cond
//!Tries to find a previous named allocation address. Returns a memory

View File

@@ -54,7 +54,7 @@ struct operator_arrow_proxy<T&>
// This function is needed for MWCW and BCC, which won't call operator->
// again automatically per 13.3.1.2 para 8
// operator T*() const { return &m_value; }
mutable T &m_value;
T &m_value;
};
template <class Iterator, class UnaryFunction>