[Insight-users] Functors and operator() const

Karthik Krishnan karthik.krishnan at kitware.com
Tue Feb 24 12:47:01 EST 2009


On Tue, Feb 24, 2009 at 8:15 AM, Julien Michel <julien.michel at c-s.fr> wrote:

> Dear ITK users and developpers,
>
> Is there any reason why none of the operator() defined in ITK Functors
> (such as the itk::Functor::ACos Functor for instance) are declared as const
> ?


You are right. Must have been an oversight.. feel free to submit a patch
against ITK CVS.

Thanks
--
karthik

It prevents me from reusing them inside some const methods, and it looks
> like they could have been declared const without any problem. Mutable does
> the trick, but I would rather avoid it if possible.
>
> Thanks a lot for your reply,
>
> Best regads,
>
> Julien
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Julien MICHEL - Ingénieur d'études - Traitement d'images
> CS Systèmes d'Information - Division ESPACE
> Département Information Géographique & Image
> Téléphone : +33 561 17 64 27
> Email : julien.michel at c-s.fr
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>



-- 
Karthik Krishnan
R&D Engineer,
Kitware Inc.
Ph: 518 371 3971 x119
Fax: 518 371 3971
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090224/f807dd3f/attachment.htm>


More information about the Insight-users mailing list