220 14513 <c1a0a498-adca-44c7-a9fc-67a979967e6a@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Benjamin Lindley <benjameslindley@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Range-based if
Date: Wed, 12 Nov 2014 17:43:53 -0800 (PST)
Lines: 58
Approved: news@gmane.org
Message-ID: <c1a0a498-adca-44c7-a9fc-67a979967e6a@isocpp.org>
References: <CADbh+eQCaTPArs7YBUg9mYwrnJ2Gu3SRAfqUbPiLscpyxV8JqQ@mail.gmail.com>
 <m3tvcu$9ia$1@ger.gmane.org>
 <CADbh+eScmZMj4dcQv73re1dM0VNbw_PeHRc_FPWNONoKNKsiMg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_976_775498106.1415843033974"
X-Trace: ger.gmane.org 1415843044 2493 80.91.229.3 (13 Nov 2014 01:44:04 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 13 Nov 2014 01:44:04 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDI7THWOWMDRBWUZSCRQKGQERIZ5BLA@isocpp.org Thu Nov 13 02:43:56 2014
Return-path: <std-proposals+bncBDI7THWOWMDRBWUZSCRQKGQERIZ5BLA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ig0-f199.google.com ([209.85.213.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDI7THWOWMDRBWUZSCRQKGQERIZ5BLA@isocpp.org>)
	id 1XojS0-0000K0-3k
	for gclcip-std-proposals@m.gmane.org; Thu, 13 Nov 2014 02:43:56 +0100
Original-Received: by mail-ig0-f199.google.com with SMTP id hn18sf20548563igb.6
        for <gclcip-std-proposals@m.gmane.org>; Wed, 12 Nov 2014 17:43:55 -0800 (PST)
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=c/nW0q7rWju5JZyNz8++CYspj1EhcpMT+fyqgOLQw8w=;
        b=y0atWBmqN2BGKAgzPYnzlEPQbIe985K4jU2JUV2eubrvIXAuBT32eAMK99Qi1AgWhy
         MfhiPbjqSNVWrOq1Q4atfwti5oVrcptCDoHJGBpVP5oVRWvbjJDmRY/2JiRCHOoilYzz
         xLdWx1NIQzfp7xdjkUNNAzA7qk6e/y8TzL+NZY2rMH0j2qKJTJPI1hTDHcLSrVuYhcev
         WZ1+r4cnjWg5dEPrIomsM6x4W4VPmVJrAp9TL5JxOafMIrn7Fg2ojRSm5UNS8B/rJrWA
         xEC6BvzEhjwtQKkihHZrzcl6AD4PWLkZ1bJkepuXJKMnRus4Zv169N7uDZ3mmSyn71Td
         6L1w==
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=c/nW0q7rWju5JZyNz8++CYspj1EhcpMT+fyqgOLQw8w=;
        b=ADt3O2Nsv2wSHfOoZHVUR5dGCIikDYum2aFzsvVNkx/GO7a9kKGMYOF3U9ejSyyHVT
         STWmZxIhSg47xRf9y7af+30IMeKs4bdvve02450hCKeUdV3k+UhBY5XfGYq6Zzf+iKj3
         VRHElOYwEkw28rynVAGF6QsACeaRXzeKSTTD1qejLzNCNFMnFo/SlerFsOIofgtPsfW6
         Ts4U7MC892Iov2VwhIhW/P+XNRGulfzn5k8Pb9e6wioCPmnEcPDwzQN3dLWQbU+bz+u1
         Q/OD4k9Cbs42shC2e0UWHV330w5s0eO1hyP6p2Qyo1en/9W58RENeYffjteXpTUvqLhv
         Y2dg==
X-Gm-Message-State: ALoCoQmI9fLng+INew+nTV1vFEqhg1TUwP/b48gpaUO8uuFtKKy8RyDwEGQLVxZ/khHFF9SoiyIv
X-Received: by 10.43.6.67 with SMTP id oj3mr47850705icb.0.1415843035460;
        Wed, 12 Nov 2014 17:43:55 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.134.137 with SMTP id pk9ls1209532obb.67.gmail; Wed, 12 Nov
 2014 17:43:54 -0800 (PST)
X-Received: by 10.182.22.201 with SMTP id g9mr717obf.24.1415843034762;
        Wed, 12 Nov 2014 17:43:54 -0800 (PST)
In-Reply-To: <CADbh+eScmZMj4dcQv73re1dM0VNbw_PeHRc_FPWNONoKNKsiMg@mail.gmail.com>
X-Original-Sender: benjameslindley@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:14513
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/14513>

------=_Part_976_775498106.1415843033974
Content-Type: text/plain; charset=UTF-8



On Tuesday, November 11, 2014 8:39:34 PM UTC-6, Brent Friedman wrote:
>
> > auto first_or_null(auto range) -> decltype(&range.begin())
>
> This assumes pointers, which while addressing some use cases it isn't 
> sufficient for the general case.
>
>
What case does it not handle? And what exactly do you mean by "This assumes 
pointers"? It doesn't assume that the iterators are pointers, if that's 
what you mean. 

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_976_775498106.1415843033974
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Tuesday, November 11, 2014 8:39:34 PM UTC-6, Br=
ent Friedman wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;mar=
gin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D=
"ltr">&gt;<span style=3D"font-family:arial,sans-serif;font-size:13px">&nbsp=
;auto first_or_null(auto range) -&gt; decltype(&amp;range.begin())</span><d=
iv><br></div><div>This assumes pointers, which while addressing some use ca=
ses it isn't sufficient for the general case.</div><div><br></div></div></b=
lockquote><div><br>What case does it not handle? And what exactly do you me=
an by "This assumes pointers"? It doesn't assume that the iterators are poi=
nters, if that's what you mean. <br></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_976_775498106.1415843033974--

.
