Step 3 (of N?) fixing bug 16599

Marshall Clow mclow.lists at gmail.com
Tue Jul 16 14:20:33 PDT 2013


On Jul 16, 2013, at 10:55 AM, Marshall Clow <mclow.lists at gmail.com> wrote:

> Make std::get constexpr.
> This affects std::array (which needs some changes), std::pair, and std::tuple.
> Includes tests for array and pair.
> 
> No tests for tuple yet, because while get(tuple) is marked as constexpr, it isn't really - yet.
> This is not a problem because, tuple's constructors (and make_tuple) aren't constexpr either - yet.
> 
> Fixing both of those will be step #4.

Better tests for non-const versions for array and pair (Thanks to Richard for the suggestions on how to test it)
Fix for std::get<>(array) [ to support non-const ]

-- 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: get-constexpr2.patch
Type: application/octet-stream
Size: 15250 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130716/c08e22fe/attachment.obj>


More information about the cfe-commits mailing list