[Insight-users] Functors and operator() const

Tom Vercauteren tom.vercauteren at gmail.com
Tue Feb 24 14:03:32 EST 2009


Hi,

I just committed the change for the functors that are in the review
directory (many of them were from me) where I am sure that there is no
backwards compatibility issue.

Regards,
Tom

On Tue, Feb 24, 2009 at 18:47, Karthik Krishnan
<karthik.krishnan at kitware.com> wrote:
> 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
>
> _____________________________________
> 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
>
>


More information about the Insight-users mailing list