220 12716 <bd6eeeb5-0fc5-4bc7-82d7-f6ab9429dddd@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Jean-Marc Bourguet <jm.bourguet@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Usability extensions to offsetof
Date: Mon, 8 Sep 2014 00:30:07 -0700 (PDT)
Lines: 67
Approved: news@gmane.org
Message-ID: <bd6eeeb5-0fc5-4bc7-82d7-f6ab9429dddd@isocpp.org>
References: <fc4c748a-1805-4e92-ae3f-58bbfe6b7537@isocpp.org> <1790122.GP859xiMW3@tjmaciei-mobl4> <dedaddc6-c382-4256-83a9-6af4dbd91caf@isocpp.org>
 <3079502.NAEi170Di4@tjmaciei-mobl4>
 <c11dc8b4-df55-4530-9322-b6bd5de9ce54@isocpp.org>
 <07066304-6357-4a10-824b-7c0451608996@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_6640_304909126.1410161407172"
X-Trace: ger.gmane.org 1410161417 10152 80.91.229.3 (8 Sep 2014 07:30:17 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 8 Sep 2014 07:30:17 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC56XVMTUYPRB75VWWQAKGQE5JNPNEA@isocpp.org Mon Sep 08 09:30:11 2014
Return-path: <std-proposals+bncBC56XVMTUYPRB75VWWQAKGQE5JNPNEA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qa0-f70.google.com ([209.85.216.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC56XVMTUYPRB75VWWQAKGQE5JNPNEA@isocpp.org>)
	id 1XQtOr-0004W1-Ab
	for gclcip-std-proposals@m.gmane.org; Mon, 08 Sep 2014 09:30:09 +0200
Original-Received: by mail-qa0-f70.google.com with SMTP id j7sf40589245qaq.1
        for <gclcip-std-proposals@m.gmane.org>; Mon, 08 Sep 2014 00:30:08 -0700 (PDT)
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
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=SfBABbbqALjgFB00NdwuImrVby1uziYSq88u363b50Y=;
        b=Yg8xqAepuAPIqEmquctNXZX0f4+y4c66TTyGaj0wpX1Xkji3LAYD0w9FRHDPhIe5/9
         gBjmO6FvTWP5l6oltnT0APYOliLSqh6plcMW4+cf+lPWyFw2UzHDA7SeHDdJupjpS6P1
         VCzV6AfSH8yZ9pE/mMcUbrhIt9TzlXKOLucspVv/Uv+jSV4BNPQdDj/t5D4Kaxluk4sQ
         J2a3dDsFPBx7gVqZ52zpXef3J6D3c8Vy0hhfg6aDEelwwJ2sPEwBaMwlVhZeuqYevb9s
         kgugeyfd18wFpzloXs+8Vh5YnAY+BsU8pm4H03uczwWZW1JHIf+okvDVg4eJqj/b6Urj
         OqzA==
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:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=SfBABbbqALjgFB00NdwuImrVby1uziYSq88u363b50Y=;
        b=jgmQfBWDUOww9fiPJ3HrW5pO/qALRMI4pn87bdUhDnYQwszqe6sHABgDottlSYsSSi
         vypbV5tOblTMYS92WVrg1ds0de7WjTWk4L1iz8zF+T+/xcxx4F6b9RprpDV2nfkgWT6B
         0IPXgKFJGNN9qtrwRLupNEmk7aXsfpuPRcMgu9HF4qGEh4AcvRsjRPQZ/qG25ScXHY0J
         L8c8txPszZtwplKpan3FebB4qfp8R+LcK+K5IOPWkXOkeJkPVAcRY/zZUMexpeiDAMGf
         3DlP8Ix8Cf/t28Ly0y03e2tAqoMLbBUyiluU2t/ZPIeTIp9qgONX0IoeWUConKsHHrSj
         4V9w==
X-Gm-Message-State: ALoCoQlIrMrxgUGwG+Y1DNKKnyk+cw9gz7m9/o3Ys/ZrQb+i5TnleMKPUHQbwCY2MgPcAKrwoESp
X-Received: by 10.52.29.196 with SMTP id m4mr16830350vdh.4.1410161408442;
        Mon, 08 Sep 2014 00:30:08 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.90.51 with SMTP id w48ls1256729qgd.49.gmail; Mon, 08 Sep
 2014 00:30:07 -0700 (PDT)
X-Received: by 10.140.102.177 with SMTP id w46mr12775qge.15.1410161407788;
        Mon, 08 Sep 2014 00:30:07 -0700 (PDT)
In-Reply-To: <07066304-6357-4a10-824b-7c0451608996@isocpp.org>
X-Original-Sender: JM.Bourguet@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <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:12716
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/12716>

------=_Part_6640_304909126.1410161407172
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable


Le samedi 6 septembre 2014 10:13:46 UTC+2, Bengt Gustafsson a =C3=A9crit :
>
> To me it seems that the logical extension would be to allow casting of a=
=20
> data member pointer to int to reveal the offset it represents. Isn't this=
=20
> what we're trying to accomplish anyway?
>

I'm not sure there is one offset to get when considering virtual=20
inheritance (you may have to apply dynamically determined offset to get to=
=20
the virtual base origin).

Yours,
--=20
Jean-Marc

--=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_6640_304909126.1410161407172
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br>Le samedi 6 septembre 2014 10:13:46 UTC+2, Bengt Gusta=
fsson a =C3=A9crit&nbsp;:<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">To me it seems that the logical extension would be to allow cas=
ting of a data member pointer to int to reveal the offset it represents. Is=
n't this what we're trying to accomplish anyway?</div></blockquote><div><br=
></div><div>I'm not sure there is one offset to get when considering virtua=
l inheritance (you may have to apply dynamically determined offset to get t=
o the virtual base origin).</div><div><br></div><div>Yours,</div><div>--&nb=
sp;</div><div>Jean-Marc</div></div>

<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_6640_304909126.1410161407172--

.
