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

2910. Template deduction and integral_constant

Section: 21.3.3 [meta.type.synop] Status: Dup Submitter: United States Opened: 2017-02-03 Last modified: 2020-09-06

Priority: Not Prioritized

View other active issues in [meta.type.synop].

View all other issues in [meta.type.synop].

View all issues with Dup status.

Discussion:

Addresses US 142

An alias template using the new template template auto deduction would make integral_constant slightly easier to use.

[2017-07 Toronto Thurs Issue Prioritization]

Duplicate of 2922.

Proposed resolution:

This wording is relative to N4618.

  1. Add to the synopsis of <type_traits>:

    template <auto N>
    using integer_constant = integral_constant<decltype(N), N>;