forked from boostorg/intrusive
Take all pointers by value to avoid aliasing issues in release mode
This commit is contained in:
1 parent
56291fafe4
commit
01b4f6264c
38 files changed
+352
-349
No files matched your search
@@ -63,10 +63,10 @@ struct stateful_value_traits
|
||||
const_node_ptr to_node_ptr (const value_type &value) const
|
||||
{ return node_array_ + (&value - values_); }
|
||||
|
||||
pointer to_value_ptr(const node_ptr &n) const
|
||||
pointer to_value_ptr(node_ptr n) const
|
||||
{ return values_ + (n - node_array_); }
|
||||
|
||||
const_pointer to_value_ptr(const const_node_ptr &n) const
|
||||
const_pointer to_value_ptr(const_node_ptr n) const
|
||||
{ return values_ + (n - node_array_); }
|
||||
|
||||
pointer values_;
|
||||
|
||||
Reference in new issue
Block a user