220 37552 <CAJnLdOb2-CwDFtfdFDFX3OxnL+3Qv2=Dtk0noy54nZX3kZOpMA@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: "'Edward Catmur' via ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Allowing std::complex's magic permission for
 other types
Date: Wed, 28 Mar 2018 19:17:20 +0000
Lines: 135
Approved: news@gmane.org
Message-ID: <CAJnLdOb2-CwDFtfdFDFX3OxnL+3Qv2=Dtk0noy54nZX3kZOpMA@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> <CAHSYqdZ9uOf3D1h4Eo61PV_jpsn6SUUzf9DhLuAwMTDrJ=1RMA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="f403045f1c6acbd85c05687ddb4f"
X-Trace: blaine.gmane.org 1522264533 1163 195.159.176.226 (28 Mar 2018 19:15:33 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 28 Mar 2018 19:15:33 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDZLZTXF7UJBBTGU57KQKGQESSJMTVQ@isocpp.org Wed Mar 28 21:15:29 2018
Return-path: <std-proposals+bncBDZLZTXF7UJBBTGU57KQKGQESSJMTVQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f69.google.com ([74.125.82.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDZLZTXF7UJBBTGU57KQKGQESSJMTVQ@isocpp.org>)
	id 1f1GXd-00008t-Hv
	for gclcip-std-proposals@m.gmane.org; Wed, 28 Mar 2018 21:15:25 +0200
Original-Received: by mail-wm0-f69.google.com with SMTP id e130sf8539372wme.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 28 Mar 2018 12:17:33 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1522264653; cv=pass;
        d=google.com; s=arc-20160816;
        b=oqSl0uWoBhmfzRKn96o1f3YtbAKI0EgjDCAzbRDqkPxuS4NJboVZwbwFwVuTiwzgWE
         F2lpFcNCkfxu4amD0vl+3uo8dfEMrDqSdObExCNcU0koZSe/uhqa1Kf8aI0VdPXANgkQ
         k3DPJixJwust4UbBzKh6vhjWxBzEOMwEoWwLGUR32nDv67tdAJLif9ybF9s8EYzI4TSW
         l5tOw3Bf4isSyASYb3UR+ZomPlGbi//6wiKX/j1Ne8JkXL02jV7c6Cc56qmwR5V3zEmw
         Z2DC0ILi3Kqra2jK4vxieH61tJy1/9sCvO9xWNhHeLsC2Mytl1DYFYcyAo+oQxMl872Z
         NRug==
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:in-reply-to:references:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=/UjwnmdkUbtzAoDiNVEl8MW3UG7pHfqo4IudL906Vtc=;
        b=qjuAVqNN6sYPgWuo+G9XIvkrDAujloeOgp014qfyvpgDeeIfY9jUCGVcBhakaiafBW
         kOpl/Z71PQo5mKvGdcrLSh9isy5XLPpZWB32Rjexo+uSgM8OW71Wnn+sFA7L+dvdPoiv
         PpZeib9lfwLs0aU5AYSnRa7T/uvXSQMvjDde+9W0aBifQUPgoOLHcq3qxtnKKqGp7ZtT
         XBY2cVCnSzzGbZkS+iTczXYu/ipl1XfPdC+EwZGLzqoHTVxS2u3/DaWG3Z/BPscwFbwM
         BtIfdDVWlwN6cNLbO5LoELz0voPJBA0UCfguUdRNoydCEbi0L5t63dWi8JzdN+oVuUpL
         Hisw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@googlemail.com header.s=20161025 header.b=GIgWAs7u;
       spf=pass (google.com: domain of ecatmur@googlemail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ecatmur@googlemail.com;
       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to: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=/UjwnmdkUbtzAoDiNVEl8MW3UG7pHfqo4IudL906Vtc=;
        b=KU3jy8qFpy2/F8WOkOmqLt4UJlR9UIAUfqIf4UP/XqLMGPQcAwwN3GpCAQZIP5Msjr
         nXAiBD6x5qB+y9aeoPg1IfRsKAP6N/BYSSzX9FBGsH8tdR1kqgh9954OZd2IIeFiymlZ
         SbNuRYo7aYqILUqMzD+xjvSw7a/pl4t/d3UrSyNZeoLzj+ysoAx+6dSwF9zT0cGtfmsm
         FYr6WvHth42hbOvQzw3Qa/CdBJfTVadBGKHk5kpxEuuf4+4H+kPlxLzHpBK+wD75BBvb
         j1HkbO6dULOtC0mI9PwgaIZ/zR5KL6qONXReeRbBb8gKefJeJfIfvmhdCGB3ADELI4q5
         1Teg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to: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=/UjwnmdkUbtzAoDiNVEl8MW3UG7pHfqo4IudL906Vtc=;
        b=nniKMCEyf+x25Supeg3VCcnQS7ozncXnvyY46HcrrUt2/GDBgE/TEZh+fIfxcIWpVr
         /K3NwlYzhyCvAOIuVbJ3yh39Smw1lvw9p/E33iXWfsftSMZu/2gSmqEwJD7TCYOU2FPP
         ph8Q0YXLYdQq6Q2lpiQdO9aaqXFq/bEt57j3KK5b70pYUd1aZEytbN1uS7mpN3h9IzCh
         AH21AovhF9+XeROPQEuBOTY+70QKQtyDMlUmk25Gf1XLo5bZNRvRj10is0uOOnrE5mtO
         c30R3kBVRtxjRRAQHUE+ImN141jKhzBdBDyh107Ajoox2h8GtT0QGP2QtFisBBcUS2PW
         CdBg==
X-Gm-Message-State: AElRT7EC75MZqZqflXPlQmA9u5W1LLzWzRuXRhDOSqFK0DU0BgsseJcP
	FcosKxBW34D+GGNiYi59Jjg=
X-Google-Smtp-Source: AG47ELtKCrPN0sak9weFjs48g2Xlc7iuXyMZFIFkgGPHJr0FOLkdGfByA5ZNOZzxMCan0oqkUtmnew==
X-Received: by 10.28.234.83 with SMTP id i80mr3085640wmh.2.1522264653229;
        Wed, 28 Mar 2018 12:17:33 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.223.130.166 with SMTP id 35ls1340166wrc.14.gmail; Wed, 28 Mar
 2018 12:17:32 -0700 (PDT)
X-Received: by 10.223.190.138 with SMTP id i10mr1805356wrh.40.1522264651994;
        Wed, 28 Mar 2018 12:17:31 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1522264651; cv=none;
        d=google.com; s=arc-20160816;
        b=FE7ePx57mU0CxDSp2dTgLygyn2IC2rKrQd85dJs+X/orZEoP60ixWZoKdOadZo8Hgx
         anobafymdI67btRlznWEYy+/FsgrYa+Ou1IzCjonxM0kqfXmAQgmqQ8febPpZt5rZWPV
         800bRuqphwrgqPSNKVirVXTdWkvC+IGuWkkze2ZwlaK4a8FvsU8FPT2A0DhusxAlW8aT
         RlIwqwboq9VedfM4W9fcU1fJSPIoB/Y1Ifwp4G4yVYko3QyF+1vlhFgM7o7/UoXgZ8HR
         R4CcJmsXyiGjmo6SL7xxUSSCDj42gKtbfo5kxPeNa8vk9+Ntlnes4eDT9VYI0L/JnU0k
         xPmA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :dkim-signature:arc-authentication-results;
        bh=u0L7+7MDN2g1pXY6tPUJylkjJ1m+Dm7KwpgAv5oqVKg=;
        b=j2QXrzacW6Uezn9qFtqXRJ9DTryMchH9VtS/Or2xQKQFJm1kqAILJdJeY/3Hgr0hUE
         g5ur4GUFIsD0aanv+bOXK2LQUseFq3VcksY/yXbJypQlUp0yYlkeDT60QsQwOvjQ2OOk
         j2JGKoExiIUOVfLfdMO6uQ6QLEtby30k2Q98bjnCfH1Q6MmvjKOdnJtF7VOWy0o2F71q
         MlqvozZfRMCRCQVCDL6QAPYVJbZ5vXERQyGl7Yyls2PvFPYlzdCurnuhT7fe+K8jlJXM
         XjogBY85qos6FOTP0ReraXbIi+zZlLxW8ObSrX92An1x07STpPyt4zKci9+CSRwbvZW/
         bKrg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@googlemail.com header.s=20161025 header.b=GIgWAs7u;
       spf=pass (google.com: domain of ecatmur@googlemail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ecatmur@googlemail.com;
       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.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 k17sor2252839wre.28.2018.03.28.12.17.31
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Wed, 28 Mar 2018 12:17:31 -0700 (PDT)
Received-SPF: pass (google.com: domain of ecatmur@googlemail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.223.161.145 with SMTP id u17mr4216006wru.61.1522264651321;
 Wed, 28 Mar 2018 12:17:31 -0700 (PDT)
In-Reply-To: <CAHSYqdZ9uOf3D1h4Eo61PV_jpsn6SUUzf9DhLuAwMTDrJ=1RMA@mail.gmail.com>
X-Original-Sender: ecatmur@googlemail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@googlemail.com header.s=20161025 header.b=GIgWAs7u;       spf=pass
 (google.com: domain of ecatmur@googlemail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=ecatmur@googlemail.com;       dmarc=pass
 (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com
X-Original-From: Edward Catmur <ecatmur@googlemail.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:37552
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37552>

--f403045f1c6acbd85c05687ddb4f
Content-Type: text/plain; charset="UTF-8"

On Wed, 28 Mar 2018, 20:13 Hyman Rosen, <hyman.rosen@gmail.com> wrote:

> 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.*
>
> --
>

Oh, I missed that. Thanks for the correction. I agree that in this case the
pointers are required to compare equal.


You received this message because you are subscribed to a topic in the
> Google Groups "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/a/isocpp.org/d/topic/std-proposals/HpRRF7RWzTY/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAHSYqdZ9uOf3D1h4Eo61PV_jpsn6SUUzf9DhLuAwMTDrJ%3D1RMA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAJnLdOb2-CwDFtfdFDFX3OxnL%2B3Qv2%3DDtk0noy54nZX3kZOpMA%40mail.gmail.com.

--f403045f1c6acbd85c05687ddb4f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr">=
On Wed, 28 Mar 2018, 20:13 Hyman Rosen, &lt;<a href=3D"mailto:hyman.rosen@g=
mail.com">hyman.rosen@gmail.com</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gma=
il_quote">On Wed, 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:st=
d-proposals@isocpp.org" target=3D"_blank" rel=3D"noreferrer">std-proposals@=
isocpp.org</a>&gt;</span> wrote:<blockquote class=3D"gmail_quote" style=3D"=
margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex"><div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quot=
e"><div>That&#39;s [expr.eq]/2.2, which comes after 2.1 and is guarded by a=
n &quot;Otherwise&quot;.</div></div></div></div></blockquote><div><br>In my=
 copy of the Draft Standard, N4700, [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 class=3D"gmail_quote"><div><div><i>If one p=
ointer 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 differ=
ent complete object, the result of the<br>comparison is unspecified.</i></d=
iv></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 active, and says<br><br><blockquote style=3D"mar=
gin:0px 0px 0px 40px;border:none;padding:0px"><i>Otherwise, if the pointers=
 are both null, both point to the same<br> function, or both represent the =
same=C2=A0</i><i>address, they compare equal.</i></blockquote></div>

<p></p>

-- <br></blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"aut=
o">Oh, I missed that. Thanks for the correction. I agree that in this case =
the pointers are required to compare equal.=C2=A0</div><div dir=3D"auto"><b=
r></div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_q=
uote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex">
You received this message because you are subscribed to a topic in the Goog=
le Groups &quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this topic, visit <a href=3D"https://groups.google.com/=
a/isocpp.org/d/topic/std-proposals/HpRRF7RWzTY/unsubscribe" target=3D"_blan=
k" rel=3D"noreferrer">https://groups.google.com/a/isocpp.org/d/topic/std-pr=
oposals/HpRRF7RWzTY/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href=
=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_blank" rel=3D"n=
oreferrer">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank" rel=3D"noreferrer">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&amp;utm_source=3Dfoote=
r" target=3D"_blank" rel=3D"noreferrer">https://groups.google.com/a/isocpp.=
org/d/msgid/std-proposals/CAHSYqdZ9uOf3D1h4Eo61PV_jpsn6SUUzf9DhLuAwMTDrJ%3D=
1RMA%40mail.gmail.com</a>.<br>
</blockquote></div></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/CAJnLdOb2-CwDFtfdFDFX3OxnL%2B3Qv2%3DD=
tk0noy54nZX3kZOpMA%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAJnLdOb2-CwD=
FtfdFDFX3OxnL%2B3Qv2%3DDtk0noy54nZX3kZOpMA%40mail.gmail.com</a>.<br />

--f403045f1c6acbd85c05687ddb4f--

.
