[ITK] [ITK-users] itk and const-correctness
Bradley Lowekamp
blowekamp at mail.nih.gov
Sat Mar 28 22:49:23 EDT 2015
Hello Pol,
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.
Brad
[1] https://github.com/InsightSoftwareConsortium/ITK/commits/master/Modules/Core/Common/include/itkSmartPointer.h
On Mar 28, 2015, at 7:44 PM, Pol Monsó Purtí <lluna.nova at gmail.com> wrote:
> 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
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150328/4b7203fe/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list