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

2898. Prefer not to use member typedefs as constructor parameters

Section: 16 [library] Status: NAD Submitter: United States Opened: 2017-02-03 Last modified: 2017-06-02

Priority: Not Prioritized

View other active issues in [library].

View all other issues in [library].

View all issues with NAD status.

Discussion:

Addresses US 106

Review the whole library for constructors using member typedefs to name constructor parameters rather than template type parameters, as this inhibits class template deduction. e.g., the unique_lock explicit constructor taking the mutex_type typedef would be better served naming Mutex directly, to preserve support for deduction.

Proposed change: Review each constructor of each library class template, and revise specification of parameter types as needed.

[2017-03-03, Kona Friday morning]

This is no longer true; core has fixed this

Setting to NAD

Proposed resolution: