[lldb-dev] [PATCH] std::vector::data()

William Lynch wlynch at wlynch.cx
Tue Jul 20 14:32:39 PDT 2010


Actually, I was thinking about this patch. There is probably going to be bad
behavior when the vector is empty (and capacity is zero?). Please don't
apply this unless data() also has that problem.

Thanks,
Bill Lynch

On Tue, Jul 20, 2010 at 4:21 PM, William Lynch <wlynch at wlynch.cx> wrote:

> Hello,
>
> I've attached a fairly large patch (touches 21 files).
>
> The point of this patch is to remove all calls to std::vector::data() with
> &std::vector::front(). Apparently on CentOS 5 and Leopard, that method is
> not part of std::vector.
>
> As a side note, should I be submitting these patches to this list or to
> lldb-commits?
>
> Thanks!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100720/8bc8520b/attachment.html>


More information about the lldb-dev mailing list