Movatterモバイル変換


[0]ホーム

URL:



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

2914.std::array does not support class-template deduction from initializers

Section: 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 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)>;

[2017-03-12, post-Kona]

Resolved by P0433R2.

Proposed resolution:

This wording is relative toN4618.

  1. Add to the synopsis of<array>:

    template <class TYPES>array(TYPES&&...) -> array<common_type_t<TYPES...>, sizeof...(TYPES)>;

[8]ページ先頭

©2009-2026 Movatter.jp