forked from boostorg/intrusive
Fixes for Boost 1.45
[SVN r65042]
This commit is contained in:
1 parent
aba4841424
commit
51c283e6ff
29 files changed
+434
-190
No files matched your search
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <boost/intrusive/detail/config_begin.hpp>
|
||||
#include <boost/intrusive/intrusive_fwd.hpp>
|
||||
#include <boost/pointer_cast.hpp>
|
||||
#include <boost/intrusive/detail/utilities.hpp>
|
||||
#include <boost/intrusive/detail/pointer_to_other.hpp>
|
||||
#include <boost/intrusive/slist_hook.hpp>
|
||||
@@ -76,7 +77,12 @@ struct unordered_node_traits
|
||||
static const bool optimize_multikey = OptimizeMultiKey;
|
||||
|
||||
static node_ptr get_next(const_node_ptr n)
|
||||
{ return node_ptr(&static_cast<node &>(*n->next_)); }
|
||||
{
|
||||
// This still fails in gcc < 4.4 so forget about it
|
||||
// using ::boost::static_pointer_cast;
|
||||
// return static_pointer_cast<node>(n->next_);
|
||||
return node_ptr(&static_cast<node&>(*n->next_));
|
||||
}
|
||||
|
||||
static void set_next(node_ptr n, node_ptr next)
|
||||
{ n->next_ = next; }
|
||||
|
||||
Reference in new issue
Block a user