Title
std::array does not support class-template deduction from initializers
Status
resolved
Section
[array.syn]
Submitter
United States

Created on 2017-02-03.00:00:00 last changed 93 months ago

Messages

Date: 2017-03-12.23:04:12

Proposed resolution:

This wording is relative to N4618.

  1. Add to the synopsis of <array>:

    
    template <class TYPES>
    array(TYPES&&...) -> array<common_type_t<TYPES...>, sizeof...(TYPES)>;
    
Date: 2017-03-15.00:00:00

[ 2017-03-12, post-Kona ]

Resolved by P0433R2.

Date: 2017-02-05.14:22:11
Addresses US 148

std::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)>;
History
Date User Action Args
2017-03-12 23:04:12adminsetmessages: + msg9087
2017-03-12 23:04:12adminsetstatus: new -> resolved
2017-02-04 04:54:35adminsetmessages: + msg8908
2017-02-03 00:00:00admincreate