220 6058 <9bc3dfc6-49e7-412c-9b7b-3dded3e4acb8@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: N3740: exempt_ptr and pointer arithmetic
Date: Sat, 31 Aug 2013 18:59:44 -0700 (PDT)
Lines: 105
Approved: news@gmane.org
Message-ID: <9bc3dfc6-49e7-412c-9b7b-3dded3e4acb8@isocpp.org>
References: <1037a4c3-905e-46ba-853e-0039af7086ae@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_1559_28790484.1378000784482"
X-Trace: ger.gmane.org 1378000784 15922 80.91.229.3 (1 Sep 2013 01:59:44 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 1 Sep 2013 01:59:44 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRBEV7RKIQKGQEDNYKAVA@isocpp.org Sun Sep 01 03:59:49 2013
Return-path: <std-proposals+bncBCW25A7E3QCRBEV7RKIQKGQEDNYKAVA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oa0-f70.google.com ([209.85.219.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRBEV7RKIQKGQEDNYKAVA@isocpp.org>)
	id 1VFwxA-0001yc-7S
	for gclcip-std-proposals@m.gmane.org; Sun, 01 Sep 2013 03:59:48 +0200
Original-Received: by mail-oa0-f70.google.com with SMTP id h1sf14713555oag.1
        for <gclcip-std-proposals@m.gmane.org>; Sat, 31 Aug 2013 18:59:46 -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=latBr+5RJa1uTL3vDU9pjFZJKvqhkgZUTfr5ApXJFl0=;
        b=JhqZxqrs9icqQYddGM8UMum/uaHhC68um3YJCKjq9HyeOY4EIZ0QkyHee98wylMy+S
         mwxpCfunKLon3MJ1gSETUiMMk1SB/3nkllaWAhr8lTdilYu6fX7mRA0hDyMwxUv57nSc
         +R4bnRet0phixTtXJRB42Q432N/zlXdOZAs6GxKicTW/tLkkBWQEHByafHSfwF9l5573
         L44ZRCpMHmQo2hn9f/oPxqE2KqQy2j8RMlE1+wY6vZtJKEsUq/tKcSo430qv364DFqEs
         BeK9ZJU5IJJHpKWhzOtwMdHjoTCBS29AMYkdV0Wk0rBgoGb0y1xKATQtW6RVwWwbjcHC
         tyRw==
X-Received: by 10.42.137.1 with SMTP id w1mr9129388ict.8.1378000786755;
        Sat, 31 Aug 2013 18:59:46 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.22.99 with SMTP id c3ls934622igf.7.canary; Sat, 31 Aug 2013
 18:59:46 -0700 (PDT)
X-Received: by 10.50.66.161 with SMTP id g1mr392992igt.5.1378000786053;
        Sat, 31 Aug 2013 18:59:46 -0700 (PDT)
In-Reply-To: <1037a4c3-905e-46ba-853e-0039af7086ae@isocpp.org>
X-Original-Sender: potswa@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:6058
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/6058>

------=_Part_1559_28790484.1378000784482
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable



On Sunday, September 1, 2013 8:11:20 AM UTC+8, toma...@gmail.com wrote:
>
> Hi,=20
>
> I would like to comment N3740: Proposal for the World=92s Dumbest Smart=
=20
> Pointer, v2 <http://isocpp.org/files/papers/n3740.pdf>.
>

isocpp.org is usually inaccessible from my locale (APAC); I get gateway=20
timeout errors. Could someone please look into the hosting, and/or post the=
=20
paper somewhere else? open-std.org works fine but the paper hasn't gone=20
into a mailing yet so the best I have is N3514, which doesn't mention=20
arithmetic.

Considering that no other smart pointer models arithmetic, why should=20
exempt_ptr?
=20

>   - exempt_ptr<T[]> for pointer representing a element of object of array=
..=20
> This one will disable conversion constructors for compatible pointer type=
s=20
> but introduce pointer arithmetic and subscriptions.
>

Using array specialization to mean different things between unique_ptr and=
=20
exempt_ptr would be quite confusing. Furthermore the proposed difference is=
=20
an extended interface for array manipulation. An extended interface should=
=20
be part of another class, not a subtle specialization.

Although I can't read the paper yet, I definitely object to adding + and -=
=20
to exempt_ptr. It's an inappropriate interface. Not only that, but it's=20
verging on iterator territory. Perhaps rather than a new specialization,=20
the extra functionality can be added as a new class std::exempt_iterator.

--=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_1559_28790484.1378000784482
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Sunday, September 1, 2013 8:11:20 AM UTC+8, tom=
a...@gmail.com wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;m=
argin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=
=3D"ltr">Hi, <br><br>I would like to comment <a href=3D"http://isocpp.org/f=
iles/papers/n3740.pdf" target=3D"_blank"> N3740: Proposal for the World=92s=
 Dumbest Smart Pointer, v2</a>.</div></blockquote><div dir=3D"ltr"><br> iso=
cpp.org is usually inaccessible from my locale (APAC); I get gateway timeou=
t errors. Could someone please look into the hosting, and/or post the paper=
 somewhere else? open-std.org works fine but the paper hasn't gone into a m=
ailing yet so the best I have is N3514, which doesn't mention arithmetic.<b=
r><br>Considering that no other smart pointer models arithmetic, why should=
 exempt_ptr?<br><div>&nbsp;</div><blockquote style=3D"margin: 0px 0px 0px 0=
..8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class=
=3D"gmail_quote">&nbsp; - exempt_ptr&lt;T[]&gt; for pointer representing a =
element of object of array. This one will disable conversion constructors f=
or compatible pointer types but introduce pointer arithmetic and subscripti=
ons.<br></blockquote><div><br>Using array specialization to mean different =
things between unique_ptr and exempt_ptr would be quite confusing. Furtherm=
ore the proposed difference is an extended interface for array manipulation=
.. An extended interface should be part of another class, not a subtle speci=
alization.<br><br>Although I can't read the paper yet, I definitely object =
to adding + and - to exempt_ptr. It's an inappropriate interface. Not only =
that, but it's verging on iterator territory. Perhaps rather than a new spe=
cialization, the extra functionality can be added as a new class <span styl=
e=3D"font-family: courier new,monospace;">std::exempt_iterator</span>.<br><=
/div></div></div>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<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_1559_28790484.1378000784482--

.
