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 ;) Cheers, /Marcus ------------------------------------------------------------------------------ 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
