Is it possible to convert std :: auto_ptr to a regular pointer?
class Test
{
......
}
Test* function()
{
std::auto_ptr<Test> test(new Test());
return _____
}
Is it possible to convert the auto_ptr pointer, which is created locally for a regular pointer.
source
share