|
Boost : |
From: Stefano Delli Ponti (stefano.delliponti_at_[hidden])
Date: 2002-05-02 05:15:08
Cool.
I like very much Andrei's idea of struct ptr.
Stefano
----- Original Message -----
From: "David B. Held" <dheld_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.devel
To: <boost_at_[hidden]>
Sent: Thursday, May 02, 2002 11:24 AM
Subject: [boost] Re: Proposal for easying smart_ptr usage within C++98
> "Andrei Alexandrescu" <andrewalex_at_[hidden]> wrote in message
> news:aaqean$ada$1_at_main.gmane.org...
> > [...]
> > template <class T, many parameters>
> > class smart_ptr
> > {
> > ...
> > };
> >
> > template <class T>
> > struct ptr
> > {
> > typedef T* raw;
> > typedef smart_ptr<T, some policies> shared;
> > typedef smart_ptr<T, some policies> scoped;
> > typedef smart_ptr<T, some policies> scoped_array;
> > typedef smart_ptr<T, some policies> weak;
> > typedef smart_ptr<T, some policies> std_auto;
> > };
> > [...]
>
> I've uploaded std_ptrs.hpp to:
> http://groups.yahoo.com/group/boost/files/smart_pointers/loki_ptr/.
> It looks like I might need to write some policies for shared/weak/
> intrusive_array, but that shouldn't be too difficult.
>
> Dave
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk