S
softwareEngineer
Hi all,
i've a question about auto_ptr. It's correct returning an auto_ptr from function ?
Example :
<CODE>
class BookShops
{
...
std::auto_ptr<BOOK> GetBook (int book_id);
};
</CODE>
This is only a dummy example but i wold know if this is standard and if it is a
good design practice.
many thanks.
i've a question about auto_ptr. It's correct returning an auto_ptr from function ?
Example :
<CODE>
class BookShops
{
...
std::auto_ptr<BOOK> GetBook (int book_id);
};
</CODE>
This is only a dummy example but i wold know if this is standard and if it is a
good design practice.
many thanks.