Jonathan Wakely
7bafcc3617
libstdc++: Make CTAD ignore tuple(const Types&...) constructor [PR121771]
...
This is similar to the r16-3536-g0bb0d1d2880d56 change for std::pair, so
that CTAD ignores the tuple(const Types&...) constructor and only uses
the tuple(Types...) -> tuple<Types...> deduction guide. This ensures
that the deduced type comes from the decayed argument types.
libstdc++-v3/ChangeLog:
PR libstdc++/121771
* include/std/tuple (tuple::tuple(const Elements&...)): Use
type_identity_t to prevent constructor being used for CTAD.
(tuple::tuple(allocator_arg_t, const A&, const Elements&...)):
Likewise.
* testsuite/20_util/tuple/cons/121771.cc: New test.
Reviewed-by: Ville Voutilainen <ville.voutilainen@gmail.com >
2026-02-13 09:06:31 +00:00
..
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-02-11 21:35:21 -05:00
2026-01-07 15:20:45 +00:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-19 12:09:11 +01:00
2026-01-02 09:56:11 +01:00
2026-02-05 16:48:20 +00:00
2026-01-02 09:56:11 +01:00
2025-08-28 17:47:00 +01:00
2026-01-19 06:36:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-29 20:17:40 +00:00
2026-01-02 09:56:11 +01:00
2026-01-10 15:08:53 +08:00
2025-12-11 19:54:44 +01:00
2025-12-11 19:54:44 +01:00
2026-01-19 06:36:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-19 06:36:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-19 06:36:11 +01:00
2026-01-02 09:56:11 +01:00
2026-02-04 17:39:51 -05:00
2025-12-12 20:22:17 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-02-03 14:22:46 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2025-10-10 09:00:22 +02:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-02-11 17:54:09 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-02-04 17:39:51 -05:00
2026-01-02 09:56:11 +01:00
2026-02-05 16:48:20 +00:00
2026-01-02 09:56:11 +01:00
2025-09-27 21:18:42 +01:00
2026-01-07 15:21:52 +00:00
2026-01-02 09:56:11 +01:00
2025-10-16 14:59:42 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-19 06:36:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-02-13 09:06:31 +00:00
2026-02-12 19:36:16 +00:00
2026-01-02 09:56:11 +01:00
2026-02-04 17:39:51 -05:00
2026-02-04 17:39:51 -05:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-02 09:56:11 +01:00
2026-01-19 06:36:11 +01:00
2026-01-02 09:56:11 +01:00