$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: David Klein (d.klein_at_[hidden])
Date: 2006-07-14 04:20:48
[snip]
> I just have a problem with having the user manage the memory.
> ie I'd rather do the following:
>
> shared_ptr<Test> p(1, 'a', "hello");
> or:
> shared_ptr<Test> p = newptr<Test>(1, 'a', "hello");
>
> instead of:
>
> shared_ptr<Test> p(new p(1, 'a', "hello"));
>
> but i guess that's a limitation of the language. to get
hi,
have a look at shared_new.zip in the vault.
-- HTH dave