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

807. tuple construction should not fail unless its element's construction fails

Section: 19.5.3.1 [tuple.cnstr] Status: CD1 Submitter: Howard Hinnant Opened: 2008-03-13 Last modified: 2016-02-10

Priority: Not Prioritized

View other active issues in [tuple.cnstr].

View all other issues in [tuple.cnstr].

View all issues with CD1 status.

Discussion:

527 Added a throws clause to bind constructors. I believe the same throws clause should be added to tuple except it ought to take into account move constructors as well.

Proposed resolution:

Add to 19.5.3.1 [tuple.cnstr]:

For each tuple constructor and assignment operator, an exception is thrown only if the construction or assignment of one of the types in Types throws an exception.