$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-16 13:08:20
AMDG
Meryl Silverburgh wrote:
> when I switch to use boost shared_ptr, i.e. switch from 'B* b' to
> 'shared_ptr<B> b' in A's class definition.
>
> I don't need to do 'b= NULL' in A's constructor, right?
>
Correct.
> But why this line won't compile "b = new B();" ?
>
Use b.reset(new B());
In Christ,
Steven Watanabe