Boost logo

Boost :

Subject: Re: [boost] [Container] Inner Smart Pointers
From: Phil Bouchard (phil_at_[hidden])
Date: 2016-02-26 08:29:21


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)); }

[...]

...


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk