[Insight-users] itk::SmartPointer in Container as Classelement
Willi Huber
surfersparadise85-itk at yahoo.com
Mon Mar 11 12:07:50 EDT 2013
Hello all,
I am trying to write a Class that manages my data.
The problem currently is that I am not aware how to use the itk::SmartPointer.
I have read its usually a bad idea to copy them. Another idea was to save the itk::SmartPointer* as suggested here: http://www.itk.org/pipermail/insight-users/2004-November/011095.html.
The problem here is: Whenever the scope of the smartpointer creation is left the itk::SmartPointer* points to a the undefined RIP. And whenever I read any ITK manual it is strictly forbidden to use new.
So if anyone has just some time it would be nice to come up with a solution for my problem. Am I the first having these problems or am I just not smart enough?
Cheers,
Willi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130311/39fc9edb/attachment.htm>
More information about the Insight-users
mailing list