220 25012 <2c7cb187-ad83-4ceb-af8b-1e61d4fb4d0d@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Cleiton Santoia <cleitonsantoia@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: "Components" template with implicitly defined
 partial specializations for all classes
Date: Sun, 6 Mar 2016 19:16:54 -0800 (PST)
Lines: 85
Approved: news@gmane.org
Message-ID: <2c7cb187-ad83-4ceb-af8b-1e61d4fb4d0d@isocpp.org>
References: <fd64d8c9-703d-45d8-a9b2-4b8a222c02f0@isocpp.org>
 <56D9E17F.2070202@wanadoo.fr>
 <2b0bcca0-0939-49f7-939b-4d688f8dfe34@isocpp.org>
 <324dbff9-84da-46f2-b2f3-3d9fe0cc2082@isocpp.org>
 <cc5a1d38-d1f0-4e41-9ee1-29bad95bb15e@isocpp.org>
 <56DA88DF.90000@wanadoo.fr>
 <c303f05a-15d4-445f-81f8-e12f67842bcc@isocpp.org>
 <7e46c46d-2e18-4cec-92c1-4f4d7fbc786b@isocpp.org>
 <d6495758-627e-434d-a867-ed473d869f47@isocpp.org>
 <39bbeb02-62b8-497b-8d65-5780a6baca97@isocpp.org>
 <05ac78e7-3d30-4a99-ad0f-a3d29497e2ff@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_2890_918872264.1457320614371"
X-Trace: ger.gmane.org 1457320623 17350 80.91.229.3 (7 Mar 2016 03:17:03 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 7 Mar 2016 03:17:03 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCBMVWMTUUNBBJ7F6O3AKGQETTQNXMY@isocpp.org Mon Mar 07 04:16:59 2016
Return-path: <std-proposals+bncBCBMVWMTUUNBBJ7F6O3AKGQETTQNXMY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ig0-f197.google.com ([209.85.213.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCBMVWMTUUNBBJ7F6O3AKGQETTQNXMY@isocpp.org>)
	id 1aclfF-0006a3-AQ
	for gclcip-std-proposals@m.gmane.org; Mon, 07 Mar 2016 04:16:57 +0100
Original-Received: by mail-ig0-f197.google.com with SMTP id rx16sf93400350igc.3
        for <gclcip-std-proposals@m.gmane.org>; Sun, 06 Mar 2016 19:16:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive:sender
         :list-subscribe:list-unsubscribe;
        bh=AN97v6nyFSav7cIgUgWv5E0+XeWc0n39gGtU7fOAlN0=;
        b=grnnzxLHjyTRi9w8H00rCJ5ytyCeIAt69VI8qZYrFE+ixqWT82IYlTsQL9J108ZDtO
         k6rDmoWTgs3ElbM/kU5xFGXQgWMXCiuGOg3M3VhE7caKWyUWEMGWclaNm5DpfBadSdYJ
         o6gP813AcB/pCCWBIkVrOObnZ0y9471hr24+TIhdvFxTj5efjHZrjQVe9scyXpBfEKnw
         z9pDOwI/aOTfsMWCel2/wmJ2W8DE59cudkx1rtUOjxQ51fCFqPbSzbQUVGYw4bAXbiWi
         3kdOr0//zXyxIHWjbXYNh97RjJxQFcwOdED7EnUWvfqEEhl+zGYK1A0T/TByYNiYig7r
         ARyg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive:sender
         :list-subscribe:list-unsubscribe;
        bh=AN97v6nyFSav7cIgUgWv5E0+XeWc0n39gGtU7fOAlN0=;
        b=jH0RJGbrOcSZzooLMzd2ZaaHy9bFJytzSyDlwEeDl8alD74Ynls17YtPmPlF1VyfMS
         T1D0fg+K/ZCH6/dmyx8ok+AntYBCa0Zzh40ZAsjZGt2CANI1PCG012oSI0pzbZw0rsTX
         cEII0DnFW1D4HNmA3o0ardNj2pLmR/OfWjUWeAdCKv5B+599xJCguWUNPM3AO6eQQmkO
         sWzAkii8TQdqQ0+EYJSzdlwh/d0PDSLjRfO8wrHWo2wP8WBPDA0uCIcsoYy7b3O94SIT
         qByOj1JlPEl1faQ2Agm8WrZhhktV1g1D5f804eU07VUe2L64eoJuvZgpUFCqhzZIs/gg
         KM3w==
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:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:sender:list-subscribe:list-unsubscribe;
        bh=AN97v6nyFSav7cIgUgWv5E0+XeWc0n39gGtU7fOAlN0=;
        b=O35ITM/EP+OlniCaSys+OdlpxVKra8VgLfdTRz2kaIPq/VPRDCd5Nrn4ttaeSK3vWv
         W6MvlgZFsiZATCFfOVB47eiB1H9+bZvZa6YbXexp52q7+hYZY4CZcwuU/wewvdqcoNHe
         bPH1goptno+N71hwa3YSlyx8uabENlU88G1KLpgoepw/jhq6dTWtVp+Aobj9Ez3Dz3HS
         C4JGJo/9/V3OqsnNWz/7ran3I59LYvRUDxtLiFcQVM8SJ+jot7LpK3/k7FonKgqXC7EG
         uEwZI+TG8/tmu9NlgIJOtjReBbfqpkKysH6O8V++iDy1+8Cc38kXhwun1WgYMek3+zv1
         MVgA==
X-Gm-Message-State: AD7BkJL1mEjzIrEDZ8nYfoCIIROQCyFGHteBBG0Q1grHW51Y3f/5j4I+xi/H5ainTurfWA==
X-Received: by 10.182.247.68 with SMTP id yc4mr15293764obc.34.1457320616282;
        Sun, 06 Mar 2016 19:16:56 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.122.66 with SMTP id lq2ls860745igb.26.canary; Sun, 06 Mar
 2016 19:16:55 -0800 (PST)
X-Received: by 10.50.111.100 with SMTP id ih4mr159231igb.3.1457320615373;
        Sun, 06 Mar 2016 19:16:55 -0800 (PST)
In-Reply-To: <05ac78e7-3d30-4a99-ad0f-a3d29497e2ff@isocpp.org>
X-Original-Sender: cleitonsantoia@gmail.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/>
Original-Sender: std-proposals@isocpp.org
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:25012
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/25012>

------=_Part_2890_918872264.1457320614371
Content-Type: multipart/alternative; 
	boundary="----=_Part_2891_1138153354.1457320614371"

------=_Part_2891_1138153354.1457320614371
Content-Type: text/plain; charset=UTF-8


>
>
>
> Can you show an example that would work also if the class had private data 
> members and base classes? 
>


Case 1 private :  
typedef<C, is_private> 


Case 2 parent classes:
typename<C, is_parent<C>>


-- 
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/2c7cb187-ad83-4ceb-af8b-1e61d4fb4d0d%40isocpp.org.

------=_Part_2891_1138153354.1457320614371
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><blockquote class=3D"gmail_quote" style=3D"margin: 0;margi=
n-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"l=
tr"><div><br><br></div><div>Can you show an example that would work also if=
 the class had private data members and base classes?=C2=A0</div></div></bl=
ockquote><div><br></div><div><br></div><div>Case 1 private : =C2=A0</div><d=
iv><div class=3D"prettyprint" style=3D"border: 1px solid rgb(187, 187, 187)=
; word-wrap: break-word; background-color: rgb(250, 250, 250);"><code class=
=3D"prettyprint"><div class=3D"subprettyprint"><span style=3D"color: rgb(34=
, 34, 34); background-color: rgb(255, 255, 255);"><font face=3D"courier new=
, monospace"><span style=3D"color: #008;" class=3D"styled-by-prettify">type=
def</span><span style=3D"color: #660;" class=3D"styled-by-prettify">&lt;</s=
pan><span style=3D"color: #000;" class=3D"styled-by-prettify">C</span><span=
 style=3D"color: #660;" class=3D"styled-by-prettify">,</span><span style=3D=
"color: #000;" class=3D"styled-by-prettify"> is_private</span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">&gt;</span><span style=3D"co=
lor: #000;" class=3D"styled-by-prettify"> </span></font></span><span style=
=3D"color: #000;" class=3D"styled-by-prettify"><br></span></div></code></di=
v><br><br></div><div>Case 2 parent classes:</div><div><div class=3D"prettyp=
rint" style=3D"border: 1px solid rgb(187, 187, 187); word-wrap: break-word;=
 background-color: rgb(250, 250, 250);"><code class=3D"prettyprint"><div cl=
ass=3D"subprettyprint"><span style=3D"background-color: rgb(255, 255, 255);=
"><font face=3D"courier new, monospace"><span style=3D"color: #008;" class=
=3D"styled-by-prettify">typename</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">&lt;</span><span style=3D"color: #000;" class=3D"st=
yled-by-prettify">C</span><span style=3D"color: #660;" class=3D"styled-by-p=
rettify">,</span><span style=3D"color: #000;" class=3D"styled-by-prettify">=
 is_parent</span><span style=3D"color: #660;" class=3D"styled-by-prettify">=
&lt;</span><span style=3D"color: #000;" class=3D"styled-by-prettify">C</spa=
n><span style=3D"color: #660;" class=3D"styled-by-prettify">&gt;&gt;</span>=
</font></span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br=
></span></div></code></div><br><br></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/2c7cb187-ad83-4ceb-af8b-1e61d4fb4d0d%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/2c7cb187-ad83-4ceb-af8b-1e61d4fb4d0d=
%40isocpp.org</a>.<br />

------=_Part_2891_1138153354.1457320614371--
------=_Part_2890_918872264.1457320614371--

.
