220 20298 <d8e90a20-a383-4ffc-ae18-7b8012e1d41b@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Columbo <r.hl@gmx.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Progress for universal template parameters
Date: Sat, 5 Sep 2015 11:41:13 -0700 (PDT)
Lines: 150
Approved: news@gmane.org
Message-ID: <d8e90a20-a383-4ffc-ae18-7b8012e1d41b@isocpp.org>
References: <66e52f79-a8b0-4489-bd52-f13a95edf9f3@isocpp.org>
 <5b09a8b3-ccb4-44da-9348-fafc8dffdff2@isocpp.org>
 <8d9b10c4-5487-4639-9ed7-6754ecb132f9@isocpp.org>
 <07ee1c98-102a-4e38-a9f1-6c4508de5801@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_340_1632920666.1441478473986"
X-Trace: ger.gmane.org 1441478478 2899 80.91.229.3 (5 Sep 2015 18:41:18 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 5 Sep 2015 18:41:18 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDRN5RPSR4MRBSXOVSXQKGQEJ5NTYNY@isocpp.org Sat Sep 05 20:41:17 2015
Return-path: <std-proposals+bncBDRN5RPSR4MRBSXOVSXQKGQEJ5NTYNY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f197.google.com ([209.85.220.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDRN5RPSR4MRBSXOVSXQKGQEJ5NTYNY@isocpp.org>)
	id 1ZYIOq-00087j-0I
	for gclcip-std-proposals@m.gmane.org; Sat, 05 Sep 2015 20:41:16 +0200
Original-Received: by qkdo128 with SMTP id o128sf85605990qkd.0
        for <gclcip-std-proposals@m.gmane.org>; Sat, 05 Sep 2015 11:41:15 -0700 (PDT)
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:in-reply-to:references
         :subject:mime-version:content-type: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=0Vw5/lQzwPSrTcr6VG4C+KAfo0N4sA26jsxFK3L2rQk=;
        b=OdpFsMzUtZfcirHQUfKdLMSfqf9SW+RfcRh0njCIiJD4MWit1+bx6UlsZYP+ajQbXp
         FYk6Z9UiNfR4ivxt20bESrMHvNkwjO/mYBa5t2W+FYkyxrP76fode4L4LX2RndxUpuxM
         JUsF9g3RCS7Mi8AMnzrmN2lAg2jbmTzM/hyOtJFU/AjNnfLxkYE6EMqthsVF3m+9px3I
         gQKOaPwJ/VNtp5xTtPTPtP6KmTyntE+p+fT3B6stEuWTS87ji9Atdl195qyd261DuUxv
         2+2FO6mP5jtMHJkXP8KHg6z/8RqNY6OanD3JimzQylUgnB4xEyPoFmZy3JFXvDr0tmWG
         lSZA==
X-Gm-Message-State: ALoCoQmixIyXd2iR3WGWSodPgOUWMPnWCYaRb7qd0EZE2sfa4p3lR32xOCFwmFPxJWHzV0JDJ4xT
X-Received: by 10.129.99.131 with SMTP id x125mr9883485ywb.42.1441478475532;
        Sat, 05 Sep 2015 11:41:15 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.128.194 with SMTP id nq2ls464616igb.35.canary; Sat, 05 Sep
 2015 11:41:14 -0700 (PDT)
X-Received: by 10.50.28.19 with SMTP id x19mr130005igg.16.1441478474807;
        Sat, 05 Sep 2015 11:41:14 -0700 (PDT)
In-Reply-To: <07ee1c98-102a-4e38-a9f1-6c4508de5801@isocpp.org>
X-Original-Sender: R.HL@gmx.net
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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:20298
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/20298>

------=_Part_340_1632920666.1441478473986
Content-Type: multipart/alternative; 
	boundary="----=_Part_341_1216510602.1441478473987"

------=_Part_341_1216510602.1441478473987
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

A is not accepting everything. A is solely accepting class or alias=20
templates; However, it does not require any specific signature. It's just a=
=20
feature that helps to implement arbitrary.

Am Samstag, 5. September 2015 20:36:17 UTC+2 schrieb Nicol Bolas:
>
>
>
> On Saturday, September 5, 2015 at 2:00:44 PM UTC-4, Columbo wrote:
>>
>> Am Samstag, 5. September 2015 18:53:10 UTC+2 schrieb Nicol Bolas:
>>>
>>> Are you talking about template parameters which could be values, types,=
=20
>>> or templates? That seems syntactically... difficult to reconcile; it so=
unds=20
>>> only one step removed from full-frontal macros.
>>>
>> I thought about introducing the following notation
>> template <template class> struct A {};
>> =E2=80=A6such that A accepts *any* template.
>>
>
> OK, so... what does `A` do with "any template"? If the template argument=
=20
> to `A` can be a template, class, or value, what exactly is `A` going to d=
o=20
> with it?
>
> You can't have A do something like this:
>
> template<stuff argName> struct A { argName a; };
>
> Because the user could pass a value or a template And if they did, the=20
> above would be syntactic nonsense.
>
> Similarly, you can't do this:
>
> template<stuff argName> struct A { argName<foo> a; };
>
> If `argName` were a class or value, this is likewise syntactic nonsense.=
=20
> And so forth.
>
> I do not know of a use of `argName` which would be equally valid C++ for=
=20
> values, templates, and concrete classes. Can you provide an example? One=
=20
> that actually does something with the template argument?
>

--=20

---=20
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 e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

------=_Part_341_1216510602.1441478473987
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><font face=3D"courier new, monospace">A</font> is not acce=
pting everything. <font face=3D"courier new, monospace">A</font> is solely =
accepting class or alias templates; However, it does not require any specif=
ic signature. It&#39;s just a feature that helps to implement <font face=3D=
"courier new, monospace">arbitrary</font>.<br><br>Am Samstag, 5. September =
2015 20:36:17 UTC+2 schrieb Nicol Bolas:<blockquote class=3D"gmail_quote" s=
tyle=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-le=
ft: 1ex;"><br><br>On Saturday, September 5, 2015 at 2:00:44 PM UTC-4, Colum=
bo wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.=
8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Am Samsta=
g, 5. September 2015 18:53:10 UTC+2 schrieb Nicol Bolas:<blockquote class=
=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc s=
olid;padding-left:1ex"><div dir=3D"ltr">Are you talking about template para=
meters which could be values, types, or templates? That seems syntactically=
.... difficult to reconcile; it sounds only one step removed from full-front=
al macros.<br></div></blockquote><div>I thought about introducing the follo=
wing notation</div><div><div style=3D"border:1px solid rgb(187,187,187);wor=
d-wrap:break-word;background-color:rgb(250,250,250)"><code><div><span style=
=3D"color:#008">template</span><span style=3D"color:#000"> </span><span sty=
le=3D"color:#660">&lt;</span><span style=3D"color:#008">template</span><spa=
n style=3D"color:#000"> </span><span style=3D"color:#008">class</span><span=
 style=3D"color:#660">&gt;</span><span style=3D"color:#000"> </span><span s=
tyle=3D"color:#008">struct</span><span style=3D"color:#000"> A </span><span=
 style=3D"color:#660">{};</span></div></code></div></div><div><font face=3D=
"arial, sans-serif">=E2=80=A6</font><font face=3D"arial, sans-serif">such t=
hat</font><font face=3D"courier new, monospace"> A=C2=A0</font>accepts <i>a=
ny</i> template.</div></div></blockquote><div><br>OK, so... what does `A` d=
o with &quot;any template&quot;? If the template argument to `A` can be a t=
emplate, class, or value, what exactly is `A` going to do with it?<br><br>Y=
ou can&#39;t have A do something like this:<br><br><div style=3D"background=
-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;bo=
rder-width:1px;word-wrap:break-word"><code><div><span style=3D"color:#008">=
template</span><span style=3D"color:#660">&lt;</span><span style=3D"color:#=
000">stuff argName</span><span style=3D"color:#660">&gt;</span><span style=
=3D"color:#000"> </span><span style=3D"color:#008">struct</span><span style=
=3D"color:#000"> A </span><span style=3D"color:#660">{</span><span style=3D=
"color:#000"> argName a</span><span style=3D"color:#660">;</span><span styl=
e=3D"color:#000"> </span><span style=3D"color:#660">};</span></div></code><=
/div><br>Because the user could pass a value or a template And if they did,=
 the above would be syntactic nonsense.<br><br>Similarly, you can&#39;t do =
this:<br><br><div style=3D"background-color:rgb(250,250,250);border-color:r=
gb(187,187,187);border-style:solid;border-width:1px;word-wrap:break-word"><=
code><div><span style=3D"color:#008">template</span><span style=3D"color:#6=
60">&lt;</span><span style=3D"color:#000">stuff argName</span><span style=
=3D"color:#660">&gt;</span><span style=3D"color:#000"> </span><span style=
=3D"color:#008">struct</span><span style=3D"color:#000"> A </span><span sty=
le=3D"color:#660">{</span><span style=3D"color:#000"> argName</span><span s=
tyle=3D"color:#080">&lt;foo&gt;</span><span style=3D"color:#000"> a</span><=
span style=3D"color:#660">;</span><span style=3D"color:#000"> </span><span =
style=3D"color:#660">};</span></div></code></div><br>If `argName` were a cl=
ass or value, this is likewise syntactic nonsense. And so forth.<br><br>I d=
o not know of a use of `argName` which would be equally valid C++ for value=
s, templates, and concrete classes. Can you provide an example? One that ac=
tually does something with the template argument?<br></div></blockquote></d=
iv>

<p></p>

-- <br />
<br />
--- <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_341_1216510602.1441478473987--
------=_Part_340_1632920666.1441478473986--

.
