16 Apr
2009
16 Apr
'09
12:20 p.m.
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.