i have a function that does this:
static MyClass* MyFunction(myparams)
{
return new MyClass(myparams)
}
and i would be able to call this function inside another one that has the following signature:
void MyFunction2(std::auto_ptr<MyClass> myparam)
but when I try to do it i have a compiler error:
Impossible to convert the first param from MyClass * to std::auto_ptr<_Ty>
why? Thank you for any help
EDIT 1 As asked the myparams types are normal but there is also a T param because the function is inside a template class