Take all pointers by value to avoid aliasing issues in release mode

This commit is contained in:
Ion Gaztañaga committed 2021-12-29 14:02:03 +01:00
1 parent 56291fafe4
commit 01b4f6264c
38 files changed
+352 -349

No files matched your search

+2 -2
View File
@@ -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_;