On Mar 18, 3:49 am, Ian Collins <ian-n...@[EMAIL PROTECTED]
> wrote:
> Nick Keighley wrote:
> > On 17 Mar, 20:04, dave_mikes...@[EMAIL PROTECTED]
wrote:
> >> On Mar 17, 10:46 am,Nick Keighley<nick_keighley_nos...@[EMAIL PROTECTED]
>
> >> wrote:
> >>> On 14 Mar, 16:25, red floyd <no.s...@[EMAIL PROTECTED]
> wrote:
>
> >>>> You almost *NEVER* want to deal with raw pointers in
> >>>> C++...
> >>> so how do you set up complex data types like trees?
> >>> Or collections of large objects?
> >> Smart pointers.
>
> > I think you'd need to use some of the boost smart pointers
> > and they aren't in the standard (yet)
>
> Why, it's a simple enough job (and an excellent learning exercise) to
> roll your own.
As a learning exercise there's certainly benefit to rolling your own.
But in production code I use Boost. And aren't they going to be in
the next standard? std::auto_ptr cut down the trees years ago.


|