libc++: Adding std::bad_array_length

Marshall Clow mclow.lists at
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>

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: <>

More information about the cfe-commits mailing list