K
kathy
I have code:
boost::scoped_ptr< CSpectrograph > m_pSpectrograph;
....
m_pSpectrograph.reset( new CSpectrograph(init_data) );
....
But I found the CSpectrograph destructor never been called. What is
wrong?
boost::scoped_ptr< CSpectrograph > m_pSpectrograph;
....
m_pSpectrograph.reset( new CSpectrograph(init_data) );
....
But I found the CSpectrograph destructor never been called. What is
wrong?