<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hello Pol,</div><div><br></div><div>I don't think anything has changed on this front [1]. So this is still the case for 2014 and 2015. ITK's style is to be more explicit with conversions than implicit and this is consistent with that philosophy.</div><div><br></div><div>Brad</div><div><br></div>[1] <a href="https://github.com/InsightSoftwareConsortium/ITK/commits/master/Modules/Core/Common/include/itkSmartPointer.h">https://github.com/InsightSoftwareConsortium/ITK/commits/master/Modules/Core/Common/include/itkSmartPointer.h</a><div><br><div><div>On Mar 28, 2015, at 7:44 PM, Pol Monsó Purtí <<a href="mailto:lluna.nova@gmail.com">lluna.nova@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><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>
_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://public.kitware.com/mailman/listinfo/insight-users<br></blockquote></div><br></div></body></html>