Boost logo

Boost :

Subject: Re: [boost] [Container] Inner Smart Pointers
From: Phil Bouchard (phil_at_[hidden])
Date: 2016-02-24 22:22:03


On 2016-02-24 8:36 AM, Phil Bouchard wrote:
>
> I get a few errors as well. I am not sure which API gets it wrong.

Ok I was able to fix the compilation, now I got run-time problems...

1) But I had to comment the default constructor of list_node public:

template <class T, class VoidPointer>
struct list_node
    : public list_hook<VoidPointer>::type
{
    //private:
    //list_node();
[...]

I am not sure why this constructor was made private.

2) Once again I would pass the pointer parameters as references

3) BTW for intrusive list I would copy my implementation where hook
destructors modify the pointers:

https://github.com/philippeb8/block_ptr/blob/master/include/boost/detail/intrusive_list.hpp

My 2 cents,
-Phil


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