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: 20 [library] Status: NAD Submitter: United States Opened: 2017-02-03 Last modified: 2017-06-01

Priority: Not Prioritized

View all other issues in [library].

View all issues with NAD status.


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: