220 25838 <9cd77438-d69f-4942-8c65-70cb4c0633b5@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: NDos Dannyu <ndospark320@naver.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Multidimentional std::initializer_list deduction
Date: Sat, 7 May 2016 16:33:32 -0700 (PDT)
Lines: 52
Approved: news@gmane.org
Message-ID: <9cd77438-d69f-4942-8c65-70cb4c0633b5@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_2295_619751627.1462664012612"
X-Trace: ger.gmane.org 1462664049 20164 80.91.229.3 (7 May 2016 23:34:09 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 7 May 2016 23:34:09 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCX7FRO67EHRBTPWXG4QKGQEDVJUH5A@isocpp.org Sun May 08 01:34:05 2016
Return-path: <std-proposals+bncBCX7FRO67EHRBTPWXG4QKGQEDVJUH5A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pa0-f69.google.com ([209.85.220.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCX7FRO67EHRBTPWXG4QKGQEDVJUH5A@isocpp.org>)
	id 1azBjA-0008Kx-Kn
	for gclcip-std-proposals@m.gmane.org; Sun, 08 May 2016 01:33:40 +0200
Original-Received: by mail-pa0-f69.google.com with SMTP id yl2sf210137542pac.2
        for <gclcip-std-proposals@m.gmane.org>; Sat, 07 May 2016 16:33:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=9enYEYwvCiCxaJoArHuM25V5MBLMMD/ipEDaRkKn/rM=;
        b=NP0938jn7EFtMlBW+Ie15gXgj+vzI8W/Px5EUu5G2kSG7xlyUpqCqAmsC5gO+z4jSV
         rMCI7HtCjipQkv8SlBNPL6x7mU3mBZUnR3DSNh8pfyh/n0pa2wodnAy1xYq3vuZR2yQ0
         8Qkjzl8ygWQuKY41JLhqZ9NnnbSGyEVFMsUmMYHl0CakrsZWMxi76EPmNoESLRC8kjbM
         AH2lLcaqsSZiqIExN4Bll99g8jXYRdJj9hqhSgJfRsuLWd8EWNj7vtfLhkwRUDwjhrz0
         ZJiSWS7RFuiryzFcWNV/Kg2H+axcHLt/4CThdJaD9AQm9W0UVNhYcglKj9918wz2hCtK
         +uSQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=9enYEYwvCiCxaJoArHuM25V5MBLMMD/ipEDaRkKn/rM=;
        b=c9qtrHbGHQ7Wl/ux3KIbKxzCAHL6dG5Mo+OLhAqtX972QND3VPGpMufo9SapUfoBUp
         kzUgMw46zKicHZ5dKLP/sYP64sv8IfmnWUJCQLZ0Q5yFtlkuhCKNdiDjtF7XG162OPGq
         UfWreg2UI8B0+mUYSIsRZ94+WgYebr6I7tJ0EOXIqtiGlVDcrxkqVthBm8rquI6+Yu5O
         SVi3zRaQw6KaITh09q7/zilQdtADhBccDRZHgLkdDGncxcGq22jf8oBOSIgjMr35r+5Z
         XGauyNcs/6vdi7fX3Vvi5/u5kNplzhGb20Qx4wgkAoJwYii+xz+7ywbZ/u3BziLq8oEC
         phOw==
X-Gm-Message-State: AOPr4FWIiARENIFq2nM8gfoNh7q/A6oZG1BtqTPfveFlTa6N91OHN9xa5rWC/XyOaaoOBg==
X-Received: by 10.66.220.168 with SMTP id px8mr18426059pac.32.1462664014594;
        Sat, 07 May 2016 16:33:34 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.39.136 with SMTP id n130ls1389511ion.26.gmail; Sat, 07 May
 2016 16:33:33 -0700 (PDT)
X-Received: by 10.50.185.137 with SMTP id fc9mr49530igc.0.1462664013265;
        Sat, 07 May 2016 16:33:33 -0700 (PDT)
X-Original-Sender: ndospark320@naver.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:25838
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/25838>

------=_Part_2295_619751627.1462664012612
Content-Type: multipart/alternative; 
	boundary="----=_Part_2296_984746579.1462664012612"

------=_Part_2296_984746579.1462664012612
Content-Type: text/plain; charset=UTF-8

I noticed *std::initializer_list* can be deduced to *auto* only one rank.
*auto i = {{0}, {0, 1}};* // expected i to be 
std::initializer_list<std::initializer_list<int>>
*std::vector<std::vector<int>> v{{0}, {0, 1}};* // but the list 
initialization like this is legal.
So, I simply suggest *std::initializer_list* to be able to deduced to *auto* 
multiple ranks.

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/9cd77438-d69f-4942-8c65-70cb4c0633b5%40isocpp.org.

------=_Part_2296_984746579.1462664012612
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I noticed <b>std::initializer_list</b> can be deduced=
 to <b>auto</b> only one rank.</div><div><b>auto i =3D {{0}, {0, 1}};</b> /=
/ expected i to be std::initializer_list&lt;std::initializer_list&lt;int&gt=
;&gt;</div><div><b>std::vector&lt;std::vector&lt;int&gt;&gt; v{{0}, {0, 1}}=
;</b> // but the list initialization like this is=C2=A0legal.</div><div>So,=
 I simply suggest <b>std::initializer_list</b> to be able to deduced to <b>=
auto</b> multiple ranks.</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/9cd77438-d69f-4942-8c65-70cb4c0633b5%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/9cd77438-d69f-4942-8c65-70cb4c0633b5=
%40isocpp.org</a>.<br />

------=_Part_2296_984746579.1462664012612--
------=_Part_2295_619751627.1462664012612--

.
