[vtk-developers] const correctness

Julien Finet julien.finet at kitware.com
Thu Feb 10 14:33:00 EST 2011


>
> Also, const-correctness can be difficult in situations where some tasks
> appear to be const but in fact are not, leading to difficulties when you
> need to use them inside another const function. For example,
> vtkPointLocator::FindClosestPoint() seems like it should be const but in
> fact it may need to rebuild the bucket structure used to accelerate the
> search.


-> This is why there is the "mutable" keyword in C++.

Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110210/dbce8862/attachment.html>


More information about the vtk-developers mailing list