This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.

3211. std::tuple<> should be trivially constructible

Section: [tuple.cnstr] Status: New Submitter: Louis Dionne Opened: 2019-05-29 Last modified: 2019-06-10

Priority: Not Prioritized

View other active issues in [tuple.cnstr].

View all other issues in [tuple.cnstr].

View all issues with New status.


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

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.