diff options
Diffstat (limited to 'boost/interprocess/detail/utilities.hpp')
-rw-r--r-- | boost/interprocess/detail/utilities.hpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/boost/interprocess/detail/utilities.hpp b/boost/interprocess/detail/utilities.hpp index 351b76cce4..f1375d7361 100644 --- a/boost/interprocess/detail/utilities.hpp +++ b/boost/interprocess/detail/utilities.hpp @@ -14,7 +14,11 @@ #ifndef BOOST_INTERPROCESS_DETAIL_UTILITIES_HPP #define BOOST_INTERPROCESS_DETAIL_UTILITIES_HPP -#if defined(_MSC_VER) +#ifndef BOOST_CONFIG_HPP +# include <boost/config.hpp> +#endif +# +#if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif @@ -23,17 +27,12 @@ #include <boost/interprocess/interprocess_fwd.hpp> #include <boost/move/utility_core.hpp> -#include <boost/type_traits/has_trivial_destructor.hpp> #include <boost/interprocess/detail/min_max.hpp> #include <boost/interprocess/detail/type_traits.hpp> -#include <boost/interprocess/detail/transform_iterator.hpp> #include <boost/interprocess/detail/mpl.hpp> -#include <boost/interprocess/containers/version_type.hpp> #include <boost/intrusive/pointer_traits.hpp> #include <boost/move/utility_core.hpp> #include <boost/static_assert.hpp> -#include <utility> -#include <algorithm> #include <climits> namespace boost { @@ -49,14 +48,6 @@ inline typename boost::intrusive::pointer_traits<Pointer>::element_type* to_raw_pointer(const Pointer &p) { return boost::interprocess::ipcdetail::to_raw_pointer(p.operator->()); } -//!To avoid ADL problems with swap -template <class T> -inline void do_swap(T& x, T& y) -{ - using std::swap; - swap(x, y); -} - //Rounds "orig_size" by excess to round_to bytes template<class SizeType> inline SizeType get_rounded_size(SizeType orig_size, SizeType round_to) |