auto_ptr with arrays
#1
According to this http://stackoverflow.com/questions/65208...with-array and this http://forums.codeguru.com/showthread.php?t=406187

this
Code:
std::auto_ptr<char> ConvertedData(new char[ ExpectedSize ]);
is illegal.


Actually I've heard from other people that just using an auto_ptr is bad practice...
Reply
Thanks given by:


Messages In This Thread
auto_ptr with arrays - by FakeTruth - 05-21-2012, 05:51 AM
RE: auto_ptr with arrays - by xoft - 05-21-2012, 06:20 AM
RE: auto_ptr with arrays - by xoft - 05-23-2012, 03:57 AM



Users browsing this thread: 1 Guest(s)