libc++: Adding std::bad_array_length

Marshall Clow mclow.lists at gmail.com
Mon Sep 9 16:29:27 PDT 2013


While reviewing my <dynarray> implementation, Richard pointed out that it should throw bad_array_length if the length was too large.
I tried to do that, only to discover that libc++ didn't have std::bad_array_length.

This patch remedies that (with a test)
There is a corresponding patch for libcxxabi coming.

-- Marshall

Marshall Clow     Idio Software   <mailto:mclow.lists at gmail.com>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcxx-bad_array_length.patch
Type: application/octet-stream
Size: 3060 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130909/d6863fc7/attachment.obj>


More information about the cfe-commits mailing list