[GiNaC-list] Use of STL iterators in GiNaC

James Jackson james.jackson at cern.ch
Thu Apr 16 12:20:15 CEST 2009


Hi,

> Up to VS 2003 these operations did not cause any trouble and behaved  
> just like gcc. Since 2005 those lead to pointers in hyperspace and  
> cause segfaults. I am not sure what the C++ standard says about such  
> operations.

I believe the behavior is "undefined". In any case, attempts to  
dereference end(), increment end() and decrement begin() definitely  
look like bugs...

Regards,
James.



More information about the GiNaC-list mailing list