Hi,
I have a few questions regarding this auto_ptr
1) I should only use auto_ptr within a function??
2) Can i use auto_ptr<int> or auto_ptr<SomeClass> in a class?
example:
If not why?Code:
class Test
{
private:
auto_ptr<int> ptrData;
}
3)auto_ptr<std::vector> vec1 for example, why is it after copying such as
auto_ptr<std::vecotr> vec2(vec1), vec2 becomes unmodifiable? how to get around this?
