[Insight-users] Functors and operator() const

Julien Michel julien.michel at c-s.fr
Tue Feb 24 08:15:49 EST 2009


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 ? 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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Insight-users mailing list