[ITK-users] itk and const-correctness

Pol Monsó Purtí lluna.nova at gmail.com
Sat Mar 28 19:44:14 EDT 2015


Hello all,

What is the preferred way to achieve const-correctness in ITK?

I've stumbled with this 2010 post:
http://itk-insight-users.2283740.n2.nabble.com/itk-SmartPointer-problem-making-code-const-correct-td5109890.html

which suggests using raw pointers as arguments and pass ::Pointer in
practice. Like the first function of
http://www.itk.org/Wiki/ITK/Examples/Utilities/PassImageToFunction with

  myStandardPointer(image);


Is that still the case in 2014?

Cheers,

Pol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150329/c3a5d743/attachment.html>


More information about the Insight-users mailing list