[vtk-developers] const correctness

David Partyka david.partyka at kitware.com
Thu Feb 10 15:13:03 EST 2011


Which compiler out of curiosity? VS 7.1?

On Thu, Feb 10, 2011 at 3:08 PM, David Thompson <dcthomp at sandia.gov> wrote:

>  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++.
>>
>
> I was under the impression that at least one compiler VTK supported didn't
> handle it, but that may have changed when some of the compilers were dropped
> a while back.
>
>        David
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110210/e7b48d48/attachment.html>


More information about the vtk-developers mailing list