26 Feb
2016
26 Feb
'16
1:29 p.m.
On 2016-02-26 12:49 AM, Phil Bouchard wrote:
Anyway I'm very close to get my pointer work correctly now with or without this optimization...
It looks like this function is the source of all evil: template < typename NodeTraits > struct default_header_holder : public NodeTraits::node { typedef NodeTraits node_traits; typedef typename node_traits::node node; typedef typename node_traits::node_ptr node_ptr; typedef typename node_traits::const_node_ptr const_node_ptr; node_ptr get_node() { return pointer_traits< node_ptr >::pointer_to(*static_cast< node*
(this)); }
[...] ...