|
Boost Users : |
From: Pooyan McSporran (duckfreezone_at_[hidden])
Date: 2006-01-15 06:37:37
On 15/01/06, Jonathan Biggar <jon_at_[hidden]> wrote:
> >
> > template<typename T> class Foo {
> > public:
> >
> > typedef shared_ptr<Foo> Ptr;
> >
> > };
>
> And of course that won't work if you need to use the shared_ptr in
> contexts where Foo is not defined yet.
True, but even so it's the approach I've ended up using; seems there's
no one "ideal" solution, but this one is quite usable given the constraints.
Thanks.
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