220 24879 <0ee10bc5-b45e-430e-bb08-69a80863cecb@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: TONGARI J <tongari95@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Go-like embedding
Date: Wed, 2 Mar 2016 06:57:51 -0800 (PST)
Lines: 284
Approved: news@gmane.org
Message-ID: <0ee10bc5-b45e-430e-bb08-69a80863cecb@isocpp.org>
References: <e85c46fd-5e5c-4e43-86ae-978da17cda0c@isocpp.org>
 <245e65c5-c96d-4366-b616-814606d4ebe9@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_4710_755491452.1456930671711"
X-Trace: ger.gmane.org 1456930681 3925 80.91.229.3 (2 Mar 2016 14:58:01 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 2 Mar 2016 14:58:01 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCC3NA775MLBB4H63O3AKGQEXEWTASI@isocpp.org Wed Mar 02 15:58:00 2016
Return-path: <std-proposals+bncBCC3NA775MLBB4H63O3AKGQEXEWTASI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qg0-f69.google.com ([209.85.192.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCC3NA775MLBB4H63O3AKGQEXEWTASI@isocpp.org>)
	id 1ab8Dv-0006Wi-K6
	for gclcip-std-proposals@m.gmane.org; Wed, 02 Mar 2016 15:57:59 +0100
Original-Received: by mail-qg0-f69.google.com with SMTP id g69sf35620474qgf.1
        for <gclcip-std-proposals@m.gmane.org>; Wed, 02 Mar 2016 06:57:54 -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
         :list-subscribe:list-unsubscribe;
        bh=gY45aeej8e1Ngfeohtua72paf+AveXL3eDPNzP2CfYA=;
        b=VZWSvCuT6n0URix2J4f0bdOiKYbKfV1TqQzeAa86i9DqivhKNgE2xH59U+D6ARjhIS
         81/bJSgYKgoOrLFLsPkwAQIhU6EjQhac38jyv/Nak30+z+02cTQkRAm2hT06AFx8GBNc
         Avwx1LhtyEGtprhxXAY2QLDGz2Sc+a0nKJT+cWur6caCHu3I0kIgMpbuPaLVDNq0Igvi
         PRwQk//3Pc13A3f4qGwR/g6vnRSxiiLZeT4dI/+KV44Y9JRis3ddt90fUgPurBaGfgTL
         rV9FvjAoqQ9yHf5d+hRcAPqq5D2SQqX3RxD92+Metuibf1vykAP+sejVOdTU6CnzTgQY
         7hKQ==
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
         :list-subscribe:list-unsubscribe;
        bh=gY45aeej8e1Ngfeohtua72paf+AveXL3eDPNzP2CfYA=;
        b=JsXkinu9AXLOKeYI8EmczpKxrzigOhg0hFMvBClVXaKkyPAxHv2OVWPV1NDOKoH2VE
         Flz8R8WBuL+TgdZdAk1cK8Js4ZbVwYidz+XS4X9PrBS+eQ9Pk5tDVqhtOUgBT3xIrOlV
         w/fYweDP849YrXkyWYS/BbBTP6viZpM8MoM7awb7RExRbIX3Cp66JKazveT2azzhLnxU
         OKhud/m8tj2N++F8CZCsW6uCm0yGchnxep1iSUy26v9nU3MCf7BGAWxz/QgSH4fh2FlQ
         PBVZqkhnqBpRW+ZtBvDDmKZS4uFyEZLO0iU2ytmAenu+89wAejenWmwqsNxepy2JgXIs
         KhQw==
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:list-subscribe:list-unsubscribe;
        bh=gY45aeej8e1Ngfeohtua72paf+AveXL3eDPNzP2CfYA=;
        b=U7OqwRIRREGY/IT5+G+zk8kADEKeThsch/rZXN9QllyOCrGwc+EuRAYKCPTiAZq648
         pBXfENoJh4GJDEx9Nk6ZaclvNA1+MZG8iFqnyHzVtZA573OJmIvJztRAjMj34iwOKfWX
         pvSOzqCBde+yW/fm7tw4u7pX5HYpf+U+h48t9AQEUYlpSaVMQJka5e4zV8U6nLIwI+l7
         7MfEdXaXY+i6obvX0Q32s3GJ3u/mMIzF7sX5e6vS15fSaTKfoRVkJ2HARSw6FgbmIZnK
         pKC/8Q7/MfLj2dbREokmKiIcE4WK35VJFneHUd/N1rySsZmXDEihOarmJBd1FPg3Co/e
         N7RQ==
X-Gm-Message-State: AD7BkJI2a+mgyoia51qnqSrgr/HGSqV5ZUZ7j/8gY51mf12+y6+GL4LtNahpnj32+92Onw==
X-Received: by 10.31.169.130 with SMTP id s124mr21422306vke.1.1456930673752;
        Wed, 02 Mar 2016 06:57:53 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.43.162 with SMTP id x2ls560187igl.34.gmail; Wed, 02 Mar
 2016 06:57:52 -0800 (PST)
X-Received: by 10.50.98.70 with SMTP id eg6mr15207igb.4.1456930672212;
        Wed, 02 Mar 2016 06:57:52 -0800 (PST)
In-Reply-To: <245e65c5-c96d-4366-b616-814606d4ebe9@isocpp.org>
X-Original-Sender: tongari95@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/>
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:24879
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24879>

------=_Part_4710_755491452.1456930671711
Content-Type: multipart/alternative; 
	boundary="----=_Part_4711_2083531829.1456930671712"

------=_Part_4711_2083531829.1456930671712
Content-Type: text/plain; charset=UTF-8

On Wednesday, March 2, 2016 at 9:46:29 PM UTC+8, Nicol Bolas wrote:
>
> On Wednesday, March 2, 2016 at 8:27:30 AM UTC-5, NeoCode wrote:
>>
>> In Go programming language, there is a feature named "emedding", which is 
>> used instead of classic c++-like inheritance.
>> For example:
>>
>> type SmallBox struct {
>>         a, b, c int
>> }
>> type BigBox struct {
>>         Timestamp time.Time
>>         SmallBox  // <<< embedding
>>         Name []string
>> }
>>
>> This is very simple and low-level extension of the concept of 
>> inheritance; the programmer explicitly specifies the location of the base 
>> object in the successor. It is strange that this simple and obvious 
>> opportunity not appeared in the C language.
>>
>> I propose enhanced (compared with Go) feature of such embedding. We can 
>> use the existing "inline" keyword (or some other keyword, eg. "embed") to 
>> indicate the embedded fields.
>>
>> struct SmallBox {
>>   int a, b, c;
>> };
>>
>> struct BigBox {
>>  time_t Timestamp; 
>>  inline SmallBox inlinedBox;
>>  std::string Name;
>> };
>>
>> As a result, we can access to the fields of SmallBox both directly and 
>> through an intermediate name "inlinedBox":
>>
>> BigBox box;
>> box.a = 10; //directly, like inheritance
>> box.inlinedBox.b = 10; // using an intermediate name, like aggregation
>>
>>
>>
> ... what's wrong with inheritance? I know people tend to believe that 
> using inheritance for something like this is wrong, but these cases are 
> *exactly* why C++ has robust support for multiple inheritance, unlike 
> most languages.
>

I think it's for object layout. Using inheritance would force you to layout 
`SmallBox` before `Timestamp` in the example (unless you make `Timestamp` 
another base).

I'm not familiar with Go, but if this is the OP's intent, I'd suggest 
taking a step further to make the feature help data packing, e.g.

struct A
{
    uint32_t a1;
    char a2;
};

struct B
{
    uint32_t b1;
    inline A;
    char b2;
};

may allow the size of B to be 12 instead of 16. 

-- 
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/0ee10bc5-b45e-430e-bb08-69a80863cecb%40isocpp.org.

------=_Part_4711_2083531829.1456930671712
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Wednesday, March 2, 2016 at 9:46:29 PM UTC+8, Nicol Bol=
as 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">On W=
ednesday, March 2, 2016 at 8:27:30 AM UTC-5, NeoCode wrote:<blockquote clas=
s=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div dir=3D"ltr">In Go programming language,=C2=A0t=
here is a feature named &quot;emedding&quot;,=C2=A0which is used instead of=
 classic c++-like inheritance.<br>For example:<div><br><div><div style=3D"b=
order:1px solid rgb(187,187,187);word-wrap:break-word;background-color:rgb(=
250,250,250)"><code><div><span style=3D"font-size:12px;vertical-align:basel=
ine;outline:0px;color:rgb(51,51,51);font-weight:700;font-family:Menlo,Monac=
o,&#39;Courier New&#39;,monospace;line-height:22.3999996185303px;white-spac=
e:pre-wrap"><span style=3D"color:#000">type</span></span><span style=3D"col=
or:rgb(51,51,51);font-family:Menlo,Monaco,&#39;Courier New&#39;,monospace;f=
ont-size:12px;line-height:22.3999996185303px;white-space:pre-wrap;backgroun=
d-color:rgb(248,248,248)"><span style=3D"color:#000"> </span><span style=3D=
"color:#606">SmallBox</span><span style=3D"color:#000"> </span></span><span=
 style=3D"font-size:12px;vertical-align:baseline;outline:0px;color:rgb(51,5=
1,51);font-weight:700;font-family:Menlo,Monaco,&#39;Courier New&#39;,monosp=
ace;line-height:22.3999996185303px;white-space:pre-wrap"><span style=3D"col=
or:#008">struct</span></span><span style=3D"color:rgb(51,51,51);font-family=
:Menlo,Monaco,&#39;Courier New&#39;,monospace;font-size:12px;line-height:22=
..3999996185303px;white-space:pre-wrap;background-color:rgb(248,248,248)"><s=
pan style=3D"color:#000"> </span><span style=3D"color:#660">{</span><span s=
tyle=3D"color:#000"><br></span></span><span style=3D"font-family:Menlo,Mona=
co,&#39;Courier New&#39;,monospace;font-size:12px;line-height:22.3999996185=
303px;white-space:pre-wrap;background-color:rgb(248,248,248)"><span style=
=3D"color:#000">=C2=A0 =C2=A0 =C2=A0 =C2=A0 a</span><span style=3D"color:#6=
60">,</span><span style=3D"color:#000"> b</span><span style=3D"color:#660">=
,</span><span style=3D"color:#000"> c </span></span><span style=3D"font-siz=
e:12px;vertical-align:baseline;outline:0px;color:rgb(51,51,51);font-weight:=
700;font-family:Menlo,Monaco,&#39;Courier New&#39;,monospace;line-height:22=
..3999996185303px;white-space:pre-wrap"><span style=3D"color:#008">int</span=
></span><span style=3D"color:rgb(51,51,51);font-family:Menlo,Monaco,&#39;Co=
urier New&#39;,monospace;font-size:12px;line-height:22.3999996185303px;whit=
e-space:pre-wrap;background-color:rgb(248,248,248)"><span style=3D"color:#0=
00"><br></span></span><span style=3D"color:rgb(51,51,51);font-family:Menlo,=
Monaco,&#39;Courier New&#39;,monospace;font-size:12px;line-height:22.399999=
6185303px;white-space:pre-wrap;background-color:rgb(248,248,248)"><span sty=
le=3D"color:#660">}</span><span style=3D"color:#000"><br></span></span><spa=
n style=3D"font-size:12px;vertical-align:baseline;outline:0px;color:rgb(51,=
51,51);font-weight:700;font-family:Menlo,Monaco,&#39;Courier New&#39;,monos=
pace;line-height:22.3999996185303px;white-space:pre-wrap"><span style=3D"co=
lor:#000">type</span></span><span style=3D"color:rgb(51,51,51);font-family:=
Menlo,Monaco,&#39;Courier New&#39;,monospace;font-size:12px;line-height:22.=
3999996185303px;white-space:pre-wrap;background-color:rgb(248,248,248)"><sp=
an style=3D"color:#000"> </span><span style=3D"color:#606">BigBox</span><sp=
an style=3D"color:#000"> </span></span><span style=3D"font-size:12px;vertic=
al-align:baseline;outline:0px;color:rgb(51,51,51);font-weight:700;font-fami=
ly:Menlo,Monaco,&#39;Courier New&#39;,monospace;line-height:22.399999618530=
3px;white-space:pre-wrap"><span style=3D"color:#008">struct</span></span><s=
pan style=3D"color:rgb(51,51,51);font-family:Menlo,Monaco,&#39;Courier New&=
#39;,monospace;font-size:12px;line-height:22.3999996185303px;white-space:pr=
e-wrap;background-color:rgb(248,248,248)"><span style=3D"color:#000"> </spa=
n><span style=3D"color:#660">{</span><span style=3D"color:#000"><br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 </span></span><span style=3D"color:rgb(51,51,51);font-=
family:Menlo,Monaco,&#39;Courier New&#39;,monospace;font-size:12px;line-hei=
ght:22.3999996185303px;white-space:pre-wrap;background-color:rgb(248,248,24=
8)"><span style=3D"color:#606">Timestamp</span><span style=3D"color:#000"> =
time</span><span style=3D"color:#660">.</span><span style=3D"color:#606">Ti=
me</span></span><span style=3D"color:rgb(51,51,51);font-family:Menlo,Monaco=
,&#39;Courier New&#39;,monospace;font-size:12px;line-height:22.399999618530=
3px;white-space:pre-wrap;background-color:rgb(248,248,248)"><span style=3D"=
color:#000"><br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 </span><span style=3D"color:#60=
6">SmallBox</span><span style=3D"color:#000"> =C2=A0</span><span style=3D"c=
olor:#800">// &lt;&lt;&lt; embedding</span><span style=3D"color:#000"><br>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 </span><span style=3D"color:#606">Name</span><s=
pan style=3D"color:#000"> </span><span style=3D"color:#660">[]</span></span=
><span style=3D"font-size:12px;vertical-align:baseline;outline:0px;color:rg=
b(51,51,51);font-weight:700;font-family:Menlo,Monaco,&#39;Courier New&#39;,=
monospace;line-height:22.3999996185303px;white-space:pre-wrap"><span style=
=3D"color:#008">string</span></span><span style=3D"color:rgb(51,51,51);font=
-family:Menlo,Monaco,&#39;Courier New&#39;,monospace;font-size:12px;line-he=
ight:22.3999996185303px;white-space:pre-wrap;background-color:rgb(248,248,2=
48)"><span style=3D"color:#000"><br></span></span><span style=3D"color:rgb(=
51,51,51);font-family:Menlo,Monaco,&#39;Courier New&#39;,monospace;font-siz=
e:12px;line-height:22.3999996185303px;white-space:pre-wrap;background-color=
:rgb(248,248,248)"><span style=3D"color:#660">}</span></span><span style=3D=
"color:#000"><br></span></div></code></div><br>This is very simple and low-=
level extension of the concept of inheritance;=C2=A0the programmer explicit=
ly specifies the location of the base object in the successor.=C2=A0It is s=
trange that this simple and obvious opportunity not appeared in the C langu=
age.</div></div><div><br></div><div>I propose enhanced (compared with Go) f=
eature of such embedding.=C2=A0We can use the existing &quot;inline&quot; k=
eyword (or some other keyword, eg. &quot;embed&quot;) to indicate the embed=
ded fields.<br></div><div><br></div><div><div style=3D"border:1px solid rgb=
(187,187,187);word-wrap:break-word;background-color:rgb(250,250,250)"><code=
><div><font color=3D"#660066"><span style=3D"color:#008">struct</span><span=
 style=3D"color:#000"> </span><span style=3D"color:#606">SmallBox</span><sp=
an style=3D"color:#000"> </span><span style=3D"color:#660">{</span><span st=
yle=3D"color:#000"><br>=C2=A0 </span><span style=3D"color:#008">int</span><=
span style=3D"color:#000"> a</span><span style=3D"color:#660">,</span><span=
 style=3D"color:#000"> b</span><span style=3D"color:#660">,</span><span sty=
le=3D"color:#000"> c</span><span style=3D"color:#660">;</span><span style=
=3D"color:#000"><br></span><span style=3D"color:#660">};</span><span style=
=3D"color:#000"><br><br></span><span style=3D"color:#008">struct</span><spa=
n style=3D"color:#000"> </span><span style=3D"color:#606">BigBox</span><spa=
n style=3D"color:#000"> </span><span style=3D"color:#660">{</span><span sty=
le=3D"color:#000"><br>=C2=A0time_t </span><span style=3D"color:#606">Timest=
amp</span><span style=3D"color:#660">;</span><span style=3D"color:#000"> <b=
r>=C2=A0</span><span style=3D"color:#008">inline</span><span style=3D"color=
:#000"> </span><span style=3D"color:#606">SmallBox</span><span style=3D"col=
or:#000"> inlinedBox</span><span style=3D"color:#660">;</span><span style=
=3D"color:#000"><br>=C2=A0std</span><span style=3D"color:#660">::</span><sp=
an style=3D"color:#008">string</span><span style=3D"color:#000"> </span><sp=
an style=3D"color:#606">Name</span><span style=3D"color:#660">;</span><span=
 style=3D"color:#000"><br></span><span style=3D"color:#660">};</span><span =
style=3D"color:#000"><br></span></font></div></code></div><br>As a result, =
we can access to the fields of=C2=A0SmallBox=C2=A0both directly and through=
 an intermediate name &quot;inlinedBox&quot;:<br></div><div><br></div><div>=
<div style=3D"border:1px solid rgb(187,187,187);word-wrap:break-word;backgr=
ound-color:rgb(250,250,250)"><code><div><font color=3D"#660066"><span style=
=3D"color:#606">BigBox</span><span style=3D"color:#000"> box</span><span st=
yle=3D"color:#660">;</span><span style=3D"color:#000"><br>box</span><span s=
tyle=3D"color:#660">.</span><span style=3D"color:#000">a </span><span style=
=3D"color:#660">=3D</span><span style=3D"color:#000"> </span><span style=3D=
"color:#066">10</span><span style=3D"color:#660">;</span><span style=3D"col=
or:#000"> </span><span style=3D"color:#800">//directly, </span></font><font=
 color=3D"#880000"><span style=3D"color:#800">like inheritance</span><span =
style=3D"color:#000"><br>box</span><span style=3D"color:#660">.</span><span=
 style=3D"color:#000">inlinedBox</span><span style=3D"color:#660">.</span><=
span style=3D"color:#000">b </span><span style=3D"color:#660">=3D</span><sp=
an style=3D"color:#000"> </span><span style=3D"color:#066">10</span><span s=
tyle=3D"color:#660">;</span><span style=3D"color:#000"> </span><span style=
=3D"color:#800">// </span></font><span style=3D"font-family:Arial,Helvetica=
,sans-serif;background-color:rgb(255,255,255)"><span style=3D"color:#800">u=
sing </span><span style=3D"color:#800">an intermediate name, </span></span>=
<span style=3D"color:rgb(136,0,0);font-family:Arial,Helvetica,sans-serif"><=
span style=3D"color:#800">like aggregation</span></span></div></code></div>=
<br><br></div></div></blockquote><div><br>... what&#39;s wrong with inherit=
ance? I know people tend to believe that using inheritance for something li=
ke this is wrong, but these cases are <i>exactly</i> why C++ has robust sup=
port for multiple inheritance, unlike most languages.<br></div></div></bloc=
kquote><div><br></div><div style=3D"font-family: arial, sans-serif; font-si=
ze: small;">I think it&#39;s for object layout. Using inheritance would for=
ce you to layout `SmallBox` before `Timestamp` in the example (unless you m=
ake `Timestamp` another base).</div><div style=3D"font-family: arial, sans-=
serif; font-size: small;"><br></div><div style=3D"font-family: arial, sans-=
serif; font-size: small;">I&#39;m not familiar with Go, but if this is the =
OP&#39;s intent, I&#39;d suggest taking a step further to make the feature =
help data packing, e.g.</div><div style=3D"font-family: arial, sans-serif; =
font-size: small;"><br></div><div style=3D"font-family: arial, sans-serif; =
font-size: small;"><div class=3D"prettyprint" style=3D"border: 1px solid rg=
b(187, 187, 187); word-wrap: break-word; background-color: rgb(250, 250, 25=
0);"><code class=3D"prettyprint"><div class=3D"subprettyprint"><span style=
=3D"color: #008;" class=3D"styled-by-prettify">struct</span><span style=3D"=
color: #000;" class=3D"styled-by-prettify"> A<br></span><span style=3D"colo=
r: #660;" class=3D"styled-by-prettify">{</span><span style=3D"color: #000;"=
 class=3D"styled-by-prettify"><br>=C2=A0 =C2=A0 uint32_t a1</span><span sty=
le=3D"color: #660;" class=3D"styled-by-prettify">;</span><span style=3D"col=
or: #000;" class=3D"styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span styl=
e=3D"color: #008;" class=3D"styled-by-prettify">char</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify"> a2</span><span style=3D"color: #=
660;" class=3D"styled-by-prettify">;</span><span style=3D"color: #000;" cla=
ss=3D"styled-by-prettify"><br></span><span style=3D"color: #660;" class=3D"=
styled-by-prettify">};</span><span style=3D"color: #000;" class=3D"styled-b=
y-prettify"><br><br></span><span style=3D"color: #008;" class=3D"styled-by-=
prettify">struct</span><span style=3D"color: #000;" class=3D"styled-by-pret=
tify"> B<br></span><span style=3D"color: #660;" class=3D"styled-by-prettify=
">{</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br>=C2=
=A0 =C2=A0 uint32_t b1</span><span style=3D"color: #660;" class=3D"styled-b=
y-prettify">;</span><span style=3D"color: #000;" class=3D"styled-by-prettif=
y"><br>=C2=A0 =C2=A0 </span><span style=3D"color: #008;" class=3D"styled-by=
-prettify">inline</span><span style=3D"color: #000;" class=3D"styled-by-pre=
ttify"> A</span><span style=3D"color: #660;" class=3D"styled-by-prettify">;=
</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br>=C2=A0=
 =C2=A0 </span><span style=3D"color: #008;" class=3D"styled-by-prettify">ch=
ar</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> b2</spa=
n><span style=3D"color: #660;" class=3D"styled-by-prettify">;</span><span s=
tyle=3D"color: #000;" class=3D"styled-by-prettify"><br></span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">};</span></div></code></div>=
<div><br></div></div><div><span style=3D"font-family: arial, sans-serif; fo=
nt-size: small;">may allow the size of B to be 12 instead of 16.</span>=C2=
=A0</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/0ee10bc5-b45e-430e-bb08-69a80863cecb%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/0ee10bc5-b45e-430e-bb08-69a80863cecb=
%40isocpp.org</a>.<br />

------=_Part_4711_2083531829.1456930671712--
------=_Part_4710_755491452.1456930671711--

.
