16 Jul
2008
16 Jul
'08
5:08 p.m.
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