<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I wrote dynamic_cast<>() and const_cast<>() like operators to work with itk::SmartPointer<> for the OTB/Monteverdi2 project.<br><br></div>I think they could be contributed to ITK (for example in the itkSmartPointer.h header file).<br><br></div>You will find enclosed a itkCasts.h file with the source code of these operators. This file is an extract from: <a href="http://hg.orfeo-toolbox.org/Monteverdi2/file/df0184bc51a3/Code/Common/Core/mvdTypes.h#l63">http://hg.orfeo-toolbox.org/Monteverdi2/file/df0184bc51a3/Code/Common/Core/mvdTypes.h#l63</a> .<br><br></div>Best regards,<br><br></div>Stéphane<br clear="all"><div><div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><pre cols="72"><a href="http://orfeo-toolbox.org" target="_blank">http://orfeo-toolbox.org</a>

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<br><br></pre></div></div></div></div>
</div></div></div></div></div></div></div></div>