M
Marc Schellens
I want to use an auto_ptr to a buffer:
auto_ptr<char> buffer = new char[ size];
But this does not work, as auto_ptr calls
delete instead of delete[], right?
What I can do? Is there a version of auto_ptr calling delete[]?
thanks,
marc
auto_ptr<char> buffer = new char[ size];
But this does not work, as auto_ptr calls
delete instead of delete[], right?
What I can do? Is there a version of auto_ptr calling delete[]?
thanks,
marc