[vtk-developers] Visual Studio 8 heads up regarding &*x.end()
Andrew Maclean
andrew.amaclean at gmail.com
Sun Mar 5 17:07:05 EST 2006
Thanks.
I hope someone fixes all this stuff in the ParaView code real soon!
Andrew
-----Original Message-----
From: vtk-developers-bounces+andrew.amaclean=gmail.com at vtk.org
[mailto:vtk-developers-bounces+andrew.amaclean=gmail.com at vtk.org] On Behalf
Of Brad King
Sent: Saturday, 4 March 2006 01:31
To: vtk-developers at vtk.org
Cc: a.maclean at cas.edu.au
Subject: Re: [vtk-developers] Visual Studio 8 heads up regarding &*x.end()
Andrew Maclean wrote:
> I have encountered a problem with Visual Studio 8 in relation to the
> issue of dereferencing an iterator.
[snip]
> My personal view is that I don't like things like that exemplified by "
> char* end = &*this->Internal->Data.end();" because there is an implicit
> assumption here that the notion of half-open intervals in the STL is
> being circumvented by this approach.
>
> I apologize if this sounds autocratic, but I am trying to save us all
> lot of grief in the future! I suspect other compilers will follow suit.
This is definately not autocratic. The code is just plain wrong and
should be fixed whenever it is seen. The C++ standard clearly states
that dereferencing and end() iterator is not allowed.
-Brad
_______________________________________________
vtk-developers mailing list
vtk-developers at vtk.org
http://www.vtk.org/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list