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

2912. Add a deduction guide for class template duration

Section: 29.5 [time.duration] Status: Resolved Submitter: United States Opened: 2017-02-03 Last modified: 2020-09-06

Priority: Not Prioritized

View all other issues in [time.duration].

View all issues with Resolved status.

Discussion:

Addresses US 144

Proposed change:

Add to <chrono> synopsis:

template <class Rep, class Period>
duration(const Rep &) -> duration<Rep>;

[2017-02-21; via email]

This should be addressed by P0433R2.

[2017-03-12, post-Kona]

Resolved by P0433R2.

Proposed resolution:

This wording is relative to N4618.

  1. Add to the synopsis of <chrono>:

    template <class Rep, class Period> duration(const Rep &) -> duration<Rep>;