|
| From: | jaleco |
| Subject: | [Nel] maybe bug |
| Date: | Wed, 21 Feb 2001 18:37:46 +0800 |
|
first I am a newbies for c++,so maybe I am wrong.
file moves.cpp
auto_ptr<CConfigFile> cf2( new
CConfigFile() );
auto_ptr<CConfigFile> cf( new
CConfigFile() );
seem to wrong, becuase auto_ptr will delete content when leave local stack. but ccconfigfile store it to vector container , this will
cause bad thing .
did it ?
|
| [Prev in Thread] | Current Thread | [Next in Thread] |