On Wed, Mar 12, 2014 at 10:17 AM, Jonathan 'Rynn' Sauer
<[email protected]> wrote:
> Hello,
>
>> +      Args->data(), Args->data() + Args->size(), Diags,
>
> Isn't that identical to
>
>   &*Args->begin(), &*Args->end()

The old code's organization implied that if Args is empty, then any
variation on &Args[0], *Args->begin(), etc. has undefined behavior.
Certainly *Args->begin() does not identify an object. I don't know
enough C++ to tell you whether &*Args->begin() is necessarily legal or
not.

–Arthur

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to