[patch] Simplify std::tuple helpers and fix C++14 bug.

Jonathan Wakely jwakely@redhat.com
Wed May 14 22:22:00 GMT 2014


I found a bug in the new std::get<Tp>(tuple<Types...>&&) function
where it didn't compile when trying to access reference member.

The rest of this patch simplifies the code in <tuple> by:

 - removing the redundant __add_ref etc. helpers.
 - defining a __tuple_element_t alias template.
 - removing duplication in the tuple_size<cv T> traits.
 - using static_assert in the relational operators.

Tested x86_64-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 14539 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20140514/2ef4b312/attachment.bin>


More information about the Libstdc++ mailing list