On Sun, Mar 23, 2003 at 09:28:21PM +0100, Alfredo Braunstein wrote:

> It's the same thing as:
> 
> vector<int> a(10);
> 
> if(&a[11] == &*a.end())
>         cout << "yes" << endl;
>         
> This does _not_ crash and prints yes (and in fact is perfectly valid and can
> even be useful).

This does not look valid C++ to me. Maybe I am wrong, but despite "one
past the end" rules I don't think .end() is guaranteed to match here.

regards
john

Reply via email to