This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofResolved status.
std::array does not support class-template deduction from initializersSection: 23.3.2[array.syn]Status:ResolvedSubmitter: United StatesOpened: 2017-02-03Last modified: 2020-09-06
Priority:Not Prioritized
View all issues withResolved status.
Discussion:
Addresses US 148std::array does not support class-template deduction from initializers without a deduction guide.
Proposed change:
Add to<array> synopsis:
template <class TYPES>array(TYPES&&...) -> array<common_type_t<TYPES...>, sizeof...(TYPES)>;
[2017-03-12, post-Kona]
Resolved by P0433R2.
Proposed resolution:
This wording is relative toN4618.
Add to the synopsis of<array>:
template <class TYPES>array(TYPES&&...) -> array<common_type_t<TYPES...>, sizeof...(TYPES)>;