Hi,
On Thu, 2009-09-10 at 17:08 +0200, Marcus Lindblom wrote:
> Johannes Brunen wrote:
> > Hello Gerrit,
> >
> > I did take a preview of the correction you have committed to svn.
> >
> > // No chunks loaded
> > if(_chunksPtrFieldIt == PtrFieldListIt())
> > return;
> >
> > This one does unfortunately not work for the Visual Studio platform at
> > least
> > not for the case that the
> >
> > _HAS_ITERATOR_DEBUGGING preprocessor flag is set, which is the default.
> >
> > If this flag is not set the following code is called
> >
> > _SCL_SECURE_TRAITS_VALIDATE(this->_Has_container() &&
> > this->_Same_container(_Right));
> >
> > Currently I do not know what this actually means.
> >
> > To be quite clear, your code is IMHO correct with respect to the C++
> > standard. However, I would prefer another solution, but do not have any
> > (simple) one at hand currently.
>
> Just to chip in: I think not. A default-initialized iterator is not
> valid for comparison with anything at all. You aren't allowed to do
> anything with it except overwrite it.
>
> (So iterators are a bit flawed, yes. Ranges, OTOH, rule ;)
flawed hmm, anyway I just got lured in by the behavior that was in there
since the early HP/SGI stl implementations, but 24.1/5 and 24.1.{3-5}
say default constructed iterators 'might' be singular (e.g. like
uninitialized pointers) so most expressions are undefined (except
assignment to non singular values). So MS is within the limits of the
standard ;)
kind regards,
gerrit
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users