not familiar with smart pointers. assign variable to value returned from function
auto_ptr<a> b()
{
return auto_ptr<a>(new a)
}
auto_ptr<a> c = b()
Kuphryn
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Thread: Object Destruction QuestionThreaded View
|
Click Here to Expand Forum to Full Width |