diff options
Diffstat (limited to 'boost/intrusive/pointer_plus_bits.hpp')
-rw-r--r-- | boost/intrusive/pointer_plus_bits.hpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/boost/intrusive/pointer_plus_bits.hpp b/boost/intrusive/pointer_plus_bits.hpp index a2a9f1bf72..1fcf67aa55 100644 --- a/boost/intrusive/pointer_plus_bits.hpp +++ b/boost/intrusive/pointer_plus_bits.hpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2007-2012 +// (C) Copyright Ion Gaztanaga 2007-2013 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at @@ -13,6 +13,12 @@ #ifndef BOOST_INTRUSIVE_POINTER_PLUS_BITS_HPP #define BOOST_INTRUSIVE_POINTER_PLUS_BITS_HPP +#if defined(_MSC_VER) +# pragma once +#endif + +#include <boost/intrusive/detail/config_begin.hpp> +#include <boost/intrusive/intrusive_fwd.hpp> #include <boost/intrusive/detail/mpl.hpp> //ls_zeros #include <boost/intrusive/detail/assert.hpp> //BOOST_INTRUSIVE_INVARIANT_ASSERT @@ -47,7 +53,11 @@ struct max_pointer_plus_bits<void*, Alignment> //!has_pointer_plus_bits<>::value is non-zero can make use of these //!operations to embed the bits in the pointer. template<class Pointer, std::size_t NumBits> -struct pointer_plus_bits; +struct pointer_plus_bits + #ifdef BOOST_INTRUSIVE_DOXYGEN_INVOKED + {} + #endif +; //!This is the specialization to embed extra bits of information //!in a raw pointer. The extra bits are stored in the lower bits of the pointer. @@ -79,4 +89,6 @@ struct pointer_plus_bits<T*, NumBits> } //namespace intrusive } //namespace boost +#include <boost/intrusive/detail/config_end.hpp> + #endif //BOOST_INTRUSIVE_POINTER_PLUS_BITS_HPP |