]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Add missing std::tuple constructor [PR114147]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Mar 2024 11:16:58 +0000 (11:16 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 2 May 2024 09:07:38 +0000 (10:07 +0100)
commit0ecb0967b4f7e68027492ac03e5dc03b5bcfdcf7
tree9502e4f4ba51391d054a21cc003ee82f88ed8260
parentf82e31be9404c008b64cd351ccb93604d9530ecb
libstdc++: Add missing std::tuple constructor [PR114147]

I caused a regression with commit r10-908 by adding a constraint to the
non-explicit allocator-extended default constructor, but seemingly
forgot to add an explicit overload with the corresponding constraint.

libstdc++-v3/ChangeLog:

PR libstdc++/114147
* include/std/tuple (tuple::tuple(allocator_arg_t, const Alloc&)):
Add missing overload of allocator-extended default constructor.
(tuple<T1,T2>::tuple(allocator_arg_t, const Alloc&)): Likewise.
* testsuite/20_util/tuple/cons/114147.cc: New test.

(cherry picked from commit 0a545ac7000501844670add0b3560ebdbcb123c6)
libstdc++-v3/include/std/tuple
libstdc++-v3/testsuite/20_util/tuple/cons/114147.cc [new file with mode: 0644]
This page took 0.054045 seconds and 6 git commands to generate.