[ITK] [ITK-dev] itk::DynamicCast<>() and itk::ConstCast<>() working with itk::SmartPointer<>
Stéphane ALBERT
otb.salbert at gmail.com
Fri Feb 27 04:54:51 EST 2015
Hello,
I wrote dynamic_cast<>() and const_cast<>() like operators to work with
itk::SmartPointer<> for the OTB/Monteverdi2 project.
I think they could be contributed to ITK (for example in the
itkSmartPointer.h header file).
You will find enclosed a itkCasts.h file with the source code of these
operators. This file is an extract from:
http://hg.orfeo-toolbox.org/Monteverdi2/file/df0184bc51a3/Code/Common/Core/mvdTypes.h#l63
.
Best regards,
Stéphane
--
http://orfeo-toolbox.org
Stéphane ALBERT
Ingénieur d'études et développement
Business Unit E-SPACE & Geo Information, Département APPLICATIONS
CS Systèmes d'Information
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - France
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150227/f02029d0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkCasts.h
Type: text/x-chdr
Size: 1936 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20150227/f02029d0/attachment.h>
-------------- 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://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-developers
More information about the Community
mailing list