Hello!
Huh...And if thus:
#include <memory>
struct A
{ int a;
};
void test(void)
{
std::auto_ptr<A> aPtr;
aPtr = std::auto_ptr<A> (new A);
}
Did warning appear at this case also? http://www.cplusplus.com/reference/memory/auto_ptr/
Regards,
Igor