Boost logo

Boost Users :

Subject: Re: [Boost-users] Incomplete types and intrusive_ptr
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-05-12 16:11:37


Dominique Devienne:
> Is it possible to achieve the ability of shared_ptr<T> to be used as a
> class member in a class declaration with an incomplete type T, with
> intrusive_ptr?

The usual approach is to declare:

    class X;
    void inrisuve_ptr_add_ref( X* );
    void intrusive_ptr_release( X* );


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net