J
James Juno
Hello,
I want to do something like this:
class A
{
...
};
class B : public A
{
...
};
void someFunction(const std::auto_ptr<A>& ptr)
{
B* b = dynamic_cast<B*>(ptr.get());
...
}
Is what I've done here the correct/safe way to handle this using auto_ptr?
Thanks!
JJ
I want to do something like this:
class A
{
...
};
class B : public A
{
...
};
void someFunction(const std::auto_ptr<A>& ptr)
{
B* b = dynamic_cast<B*>(ptr.get());
...
}
Is what I've done here the correct/safe way to handle this using auto_ptr?
Thanks!
JJ