
30 Sep
2005
30 Sep
'05
7:42 a.m.
John Sun wrote: <snip> You can't assign anything to a scoped ptr, you have to use it's reset member function. (See http://www.boost.org/libs/smart_ptr/scoped_ptr.htm.)
CTest::Initialize() { int aa, bb; m_spTest2=new CTest2(aa, bb);
m_spTest2.reset(new CTest2(aa, bb));
}
Markus