220 37551 <CAHSYqdZ9uOf3D1h4Eo61PV_jpsn6SUUzf9DhLuAwMTDrJ=1RMA@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Hyman Rosen <hyman.rosen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Allowing std::complex's magic permission for
 other types
Date: Wed, 28 Mar 2018 15:12:35 -0400
Lines: 80
Approved: news@gmane.org
Message-ID: <CAHSYqdZ9uOf3D1h4Eo61PV_jpsn6SUUzf9DhLuAwMTDrJ=1RMA@mail.gmail.com>
References: <a3462649-a7bd-4215-b162-e8fe922df02d@isocpp.org>
 <p9c1k7$h28$1@blaine.gmane.org> <e85dfb30-f3ff-4769-90d2-373efceda1e6@isocpp.org>
 <CAA7YVg2n1N_QrxC09Er4vLr+ebwQ5GhkD-3isND76d4YJHwC0g@mail.gmail.com>
 <018c02d9-7c65-4451-acc1-c49196fc7622@isocpp.org> <CAA7YVg1Tt-hwYej80qK_Cr2RxvBtP3aM+EZ7gqC4RKz6z9aGPw@mail.gmail.com>
 <1e25a8ae-4752-4fc0-8c89-639cef53121c@isocpp.org> <CAA7YVg1ZHes2s7mMGqGAgh0JTrNOq0gHmSNFgdRJo6yOb78Q-Q@mail.gmail.com>
 <CAJnLdObRm=N+cYEaAV+K6_Nnvoc4ef9Efimw-YNrkFYMQothFg@mail.gmail.com>
 <CAA7YVg20tNjDzVSiQpoutAcFSuTNf+71mrxHRA9gWRmXv5Ja6A@mail.gmail.com> <CAJnLdObgKF5w_wGFFJXM6ALS3jS6E5di+_zKZHcwh67GDyZcXQ@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="001a114b3e7e6b5c4605687dcbda"
X-Trace: blaine.gmane.org 1522264257 12951 195.159.176.226 (28 Mar 2018 19:10:57 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 28 Mar 2018 19:10:57 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDKJJPVBQMKRBOWS57KQKGQEF7Y4PHQ@isocpp.org Wed Mar 28 21:10:53 2018
Return-path: <std-proposals+bncBDKJJPVBQMKRBOWS57KQKGQEF7Y4PHQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f71.google.com ([74.125.82.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDKJJPVBQMKRBOWS57KQKGQEF7Y4PHQ@isocpp.org>)
	id 1f1GTD-0003FG-Hw
	for gclcip-std-proposals@m.gmane.org; Wed, 28 Mar 2018 21:10:51 +0200
Original-Received: by mail-wm0-f71.google.com with SMTP id b201sf1612714wme.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 28 Mar 2018 12:12:59 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1522264379; cv=pass;
        d=google.com; s=arc-20160816;
        b=nSgvK02C99zsEagrRT4jjwX4A8VhBrVPyVYWSUFF5jjU+fK1IQvNJOmm96RVryc7Kx
         p4Ho9o709FJgIMvXaPzOwwhcsFt2YXS38ka5HrGZqfcQu/qgH2viiQQRxMbU03TviJ78
         gwX2aHmtboMDn/4zOggUgQJw6fqiwr/O8IcStOCC0nzkrHzCAoOIu/3iR28twQEIkZ6H
         hSsJNLBzossyhwGNNDtBAjmtLE+UfjRGpIRdJSkg6A5QcBpGDx8CGKXCoeeuOBQZolSo
         g4b/Ree9J8UhUawcY0Riwo30h05mWJqeDnBPcayWrNfRfq10LN6uEXwVLUHv0YszoVVE
         fQ/A==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=h2AbTAwa8G60tyiXkdXcbopVU/vG6r9xTC/BNOKcS7Y=;
        b=OW+YVx7v4ecdoEmuEDSulsZCBL9w4ArHa9JZf7toz1gL0O8mN2uPl9MF0OgcGvzYtZ
         ODxYVk1msILL6AAg8jWGBkRgJPCWK8q+WWQ8TQU9QFGUZPEN1VFgn2HkuSay00vzslCQ
         eKvUhk7pQvlvsHz8RK7e1S3QR5V/+sIAA5mw/gdjnjXgkNSR4+AD+JykYQ5PrEx0Y5If
         KMQ0GJ4lPKYkNBA89eVTSTKEijfx301IB/p23ObmQfaHLo218URxnBkrQr+9Xa/VU816
         NQCNJ1bmcXwni3GG5jC3X1+03QgZbljcrxOGX4N3M/9h7t/+QjVMVGWUnueh9v3tYoY/
         iuCw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=iL1zSCUk;
       spf=pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hyman.rosen@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=h2AbTAwa8G60tyiXkdXcbopVU/vG6r9xTC/BNOKcS7Y=;
        b=ay0WcDs1onfeTkM9//pJH2cYK81g2xoZxLSFv0WIT7DwRLY6hVAx1Y/zzRylEBJ8bT
         /XnLsaiXzsFuAI4uz7WLo4UHYJH7HWp0jdqDJihjy7r+NVUFcmB2XANErWJ+GOyir1/+
         CHfpkFLTSwN+9JgnBj4YZR+1gAbZGCckF5QZzQxi1c/Xe2nQZ83/zN7TkuD474uGR6iY
         qwecvBpy2S/yTdqcCEiEksHtBv3l1+U9wxP3knCvoCYO562O/kXg/7NvruaxmOD2oZNX
         eFIahsNA+/X5yLWWJGgD636wKPfenmSlPmgGgwvjKX3xfp95Rc7+uFik+ySz3OJh0udh
         wcVQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=h2AbTAwa8G60tyiXkdXcbopVU/vG6r9xTC/BNOKcS7Y=;
        b=Dfl7qePN87Cokevh04Dl2z7iLScYCf4dYZpShin//l5D4rITdenc7rjIxjClNfJatT
         GoZ+PYetkBYyFGbnfW6tX7W1+nWpr6zdOsWkjlS7o5CWiqeZj7NK2IppVInRgpnL2VG/
         qvomN27X3K6nOBk+luyY9/OvMxAO6wWaXnFMAtypikXnN839Kj+1HBTt+G9H1DFSVK+A
         Y6bnaSTMFMi/dUyE/HOGuC4ZZfMCEYnn4aP1MbdJgbrHZUXQr6QQe3Ar10TFLA41zDcB
         0XwNhNXgyt/lrKPaTWh1Q/CO04lRb//8ocXkxnnMZY0s3QRF6Wi7Ur61lhm8IZ0n0DGs
         Oo7Q==
X-Gm-Message-State: AElRT7HQCSuVrTObo7KmLPV8cCFIybeDYwajMJL4Afi+YUH7UqgT+RLT
	ohAaUSqEpAoZOutbpvutrgI8Ng==
X-Google-Smtp-Source: AG47ELsYh8x+YYG3wufEsINC51JHNSRcHSlEx4piWGMTwe0kj0sm45Q6k0t80CeXUE8FjvT7ggSEMA==
X-Received: by 10.28.237.15 with SMTP id l15mr3121864wmh.1.1522264378937;
        Wed, 28 Mar 2018 12:12:58 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.223.196.13 with SMTP id v13ls1332423wrf.12.gmail; Wed, 28 Mar
 2018 12:12:57 -0700 (PDT)
X-Received: by 10.223.142.214 with SMTP id q80mr3864045wrb.81.1522264377436;
        Wed, 28 Mar 2018 12:12:57 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1522264377; cv=none;
        d=google.com; s=arc-20160816;
        b=Lp3MEZK9orNV2ZDPD1KVDBXnLMLZ4kkjbcKN/AEssJ9IHUfx8Dl7w6eak9f9+ufkSj
         Rjgkgaum+KAYnWGo1I+yDIV4D6RKdsmCvUnDNVkj7TsnICxwU6YInWuv6kjkHAsxQxGF
         klZO/jxdKSfl0KrX/NwNAP/YtR50VOS3J7AtflgqXUQPC7X3HzNhopQXggQEr5k0JVp3
         8hiLB9ldfcIvhkePmD1UvOuRDqbsgX9GzdZcF63iIpkGoodxYy+WAVlKwd3s/gQfYZB5
         BsY0EelSI+7OE/arPYJW0CQhsLuDD2e+ek8TbMR8CQE97NTWgsRBigRYt0ToSPUYvnhM
         9rqA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=7/zy7iI+0l6MUKJWoHcwvYk2AeFxzhFRGsJVw/Hg8zA=;
        b=BbbS50pvbaX3h/qgHnvtQWC2Z850vtIVJGMufJRL7blINw1NjpH29fovSNQ0N4rfO2
         uNW64/FyxJJWBon9Zsl0ijQHAcDb2OVnjMsRKaMUgoCM8KmLwBpevHJ+wF0iecdez2OY
         2n4stzgewYbCgevkaNcVxEAmoxADAge5+U+ND9RTwnsykm4oddQkdCkBV97uIf8BBdG1
         iMUkUFfLi8uyhxKM+MRGcjNLGc963DdwBPJT0mqzs2ApLP25YAplpb8AgPO4gqSmTqDX
         ECuHpL1qweIjDKSHIH6poIi9u/1hyaKSjqwmuJBSkN+KIy74p5YQTFGt2iWBkJGT7i/T
         WhKw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=iL1zSCUk;
       spf=pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hyman.rosen@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id x3sor61333wmb.33.2018.03.28.12.12.57
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Wed, 28 Mar 2018 12:12:57 -0700 (PDT)
Received-SPF: pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.28.153.213 with SMTP id b204mr3466212wme.79.1522264376563;
 Wed, 28 Mar 2018 12:12:56 -0700 (PDT)
Original-Received: by 10.28.55.19 with HTTP; Wed, 28 Mar 2018 12:12:35 -0700 (PDT)
In-Reply-To: <CAJnLdObgKF5w_wGFFJXM6ALS3jS6E5di+_zKZHcwh67GDyZcXQ@mail.gmail.com>
X-Original-Sender: hyman.rosen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=iL1zSCUk;       spf=pass
 (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=hyman.rosen@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE dis=NONE) header.from=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:37551
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37551>

--001a114b3e7e6b5c4605687dcbda
Content-Type: text/plain; charset="UTF-8"

On Wed, Mar 28, 2018 at 12:38 PM, 'Edward Catmur' via ISO C++ Standard -
Future Proposals <std-proposals@isocpp.org> wrote:
>
> That's [expr.eq]/2.2, which comes after 2.1 and is guarded by an
> "Otherwise".
>

In my copy of the Draft Standard, N4700, [expr.eq]/2.1 says


*If one pointer represents the address of a complete object,and another
pointer represents the address *

*one past thelast element of a different complete object, the result of
thecomparison is unspecified.*

A complete object is not a subobject of another object, therefore this
clause
does not apply to the array elements in question, which are perforce not
complete objects.  So [expr.eq]/2.2 is active, and says


*Otherwise, if the pointers are both null, both point to the same function,
or both represent the same **address, they compare equal.*

-- 
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/CAHSYqdZ9uOf3D1h4Eo61PV_jpsn6SUUzf9DhLuAwMTDrJ%3D1RMA%40mail.gmail.com.

--001a114b3e7e6b5c4605687dcbda
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
ed, Mar 28, 2018 at 12:38 PM, &#39;Edward Catmur&#39; via ISO C++ Standard =
- Future Proposals <span dir=3D"ltr">&lt;<a href=3D"mailto:std-proposals@is=
ocpp.org" target=3D"_blank">std-proposals@isocpp.org</a>&gt;</span> wrote:<=
blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l=
eft:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div clas=
s=3D"gmail_extra"><div class=3D"gmail_quote"><div>That&#39;s [expr.eq]/2.2,=
 which comes after 2.1 and is guarded by an &quot;Otherwise&quot;.</div></d=
iv></div></div></blockquote><div><br>In my copy of the Draft Standard, N470=
0, [expr.eq]/2.1 says<br><br></div></div></div><blockquote style=3D"margin:=
0px 0px 0px 40px;border:none;padding:0px"><div class=3D"gmail_extra"><div c=
lass=3D"gmail_quote"><div><div><i>If one pointer represents the address of =
a complete object,<br>and another pointer represents the address=C2=A0</i><=
i>one past the<br>last element of a different complete object, the result o=
f the<br>comparison is unspecified.</i></div></div></div></div><div class=
=3D"gmail_extra"><div class=3D"gmail_quote"><div><div><br></div></div></div=
></div></blockquote>A complete object is not a subobject of another object,=
 therefore this clause<br>does not apply to the array elements in question,=
 which are perforce not<br>complete objects.=C2=A0 So [expr.eq]/2.2 is acti=
ve, and says<br><br><blockquote style=3D"margin:0px 0px 0px 40px;border:non=
e;padding:0px"><i>Otherwise, if the pointers are both null, both point to t=
he same<br> function, or both represent the same=C2=A0</i><i>address, they =
compare equal.</i></blockquote></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/CAHSYqdZ9uOf3D1h4Eo61PV_jpsn6SUUzf9Dh=
LuAwMTDrJ%3D1RMA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAHSYqdZ9uOf3D1=
h4Eo61PV_jpsn6SUUzf9DhLuAwMTDrJ%3D1RMA%40mail.gmail.com</a>.<br />

--001a114b3e7e6b5c4605687dcbda--

.
