Title
std::tuple<> should be trivially constructible
Status
new
Section
[tuple.cnstr]
Submitter
Louis Dionne

Created on 2019-05-29.00:00:00, last changed 2019-06-08.16:00:15.

Messages

Date: 2019-06-08.16:00:15

Proposed resolution:

This wording is relative to N4810.

  1. Modify [tuple.cnstr] as indicated:

    -4- If is_trivially_destructible_v<Ti> is true for all Ti, then the destructor of tuple is trivial. The default constructor of tuple<> is trivial.

Date: 2019-05-29.00:00:00

That requirement is really easy to enforce, and it has been requested by users (e.g. libc++ bug 41714).

History
Date User Action Args
2019-06-08 16:00:15adminsetmessages: + msg10422
2019-05-29 00:00:00admincreate