<div dir="ltr"><div>Hello all,<br><br></div><div>What is the preferred way to achieve const-correctness in ITK?<br><br></div><div>I've stumbled with this 2010 post: <a href="http://itk-insight-users.2283740.n2.nabble.com/itk-SmartPointer-problem-making-code-const-correct-td5109890.html">http://itk-insight-users.2283740.n2.nabble.com/itk-SmartPointer-problem-making-code-const-correct-td5109890.html</a><br><br></div><div>which suggests using raw pointers as arguments and pass ::Pointer in practice. Like the first function of <a href="http://www.itk.org/Wiki/ITK/Examples/Utilities/PassImageToFunction">http://www.itk.org/Wiki/ITK/Examples/Utilities/PassImageToFunction</a> with <br><pre class="">  myStandardPointer<span class="">(</span>image<span class="">)</span><span class="">;</span></pre><br></div><div>Is that still the case in 2014? <br><br></div><div>Cheers,<br><br></div><div>Pol<br></div><div><br> <br></div></div>