220 13800 <5436F915.9030806@gmx.net> article
Path: news.gmane.org!not-for-mail
From: Jens Maurer <Jens.Maurer@gmx.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: D4183-01 Contiguous Iterators - Pointer
 Conversion & Type Trait
Date: Thu, 09 Oct 2014 23:07:33 +0200
Lines: 30
Approved: news@gmane.org
Message-ID: <5436F915.9030806@gmx.net>
References: <CAGg_6+OMeDueXKd4fo2S72iLRQwp2=__vnHmgUQpbs-E7uaiew@mail.gmail.com> <23f0af50-6ac5-499f-a4a7-0604c3e367a1@isocpp.org> <CAGg_6+NDhcZLd+3KEG+wfdZYFBVt=fWMt5DzMgQe2CC+M33ATQ@mail.gmail.com> <e8c589bd-95b8-4706-9b6d-a065bb781295@isocpp.org> <CAGg_6+OxFCS3F2b9X_F8UddDMincY-5HQZfzoYyab9Y0uwTDXg@mail.gmail.com> <CAA7U3HNeKwDRisht0kc29CrP9JRACNrVCW3R_TV9gLjFHUUENw@mail.gmail.com> <CAGg_6+NLr_7ALvTzDch9pyCzeAB2jpzr4_d9WKMjQmnEGccKNg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1412888866 2151 80.91.229.3 (9 Oct 2014 21:07:46 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 9 Oct 2014 21:07:46 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDPMTYGK64JRBF7S3OQQKGQE57LIYBA@isocpp.org Thu Oct 09 23:07:38 2014
Return-path: <std-proposals+bncBDPMTYGK64JRBF7S3OQQKGQE57LIYBA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f71.google.com ([74.125.82.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDPMTYGK64JRBF7S3OQQKGQE57LIYBA@isocpp.org>)
	id 1XcKvx-0004hd-1M
	for gclcip-std-proposals@m.gmane.org; Thu, 09 Oct 2014 23:07:37 +0200
Original-Received: by mail-wg0-f71.google.com with SMTP id y10sf1352788wgg.10
        for <gclcip-std-proposals@m.gmane.org>; Thu, 09 Oct 2014 14:07:36 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to
         :subject:references:in-reply-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:content-type;
        bh=4uD687Be7A/evooeygpCIKtxQLYEu5Pv7clF2dR/mkw=;
        b=B9uqq610qocaHf6GfF+tWyGicuSoq/o9/+T4tSj6uMGNP8zPRTc6+zJIuDWImKwxs4
         bwtE+p/ITeY9oV+gbBO2+7CCkKpiKNSrY20BvLhW2G680FaXy4qbFfCyJlhQAY5GL4lQ
         FtCvcDtumOuz7HYlA/kdtenOrbtQKIb8jUpMntcYSVGvRMuesd1qeUkicOiQ5wZvOYbJ
         wY+/GNIelxkU9a5/IyBioAMS8BdaFzxTboo4M0dbcJhdT7h2YtQDPSz/M2znfrNNo8J5
         GfNzSIdxSitrUz1COGYl07mOfKdJS2HovIpNgFxXdbhoNQ6FGrMlB+QfIcFVxx06bCqO
         zRGg==
X-Gm-Message-State: ALoCoQkaWNOV3CVCgTF/fVBHlhG+cMXl0D3us9M8JUpQTSrdrQYPXqY8V4jAw97YewZ0hBdOecvF
X-Received: by 10.180.39.38 with SMTP id m6mr135440wik.7.1412888856747;
        Thu, 09 Oct 2014 14:07:36 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.6.5 with SMTP id w5ls224018law.71.gmail; Thu, 09 Oct 2014
 14:07:35 -0700 (PDT)
X-Received: by 10.112.209.2 with SMTP id mi2mr19952002lbc.51.1412888855000;
        Thu, 09 Oct 2014 14:07:35 -0700 (PDT)
Original-Received: from mout.gmx.net (mout.gmx.net. [212.227.15.19])
        by mx.google.com with ESMTPS id 1si6219904lai.41.2014.10.09.14.07.34
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 09 Oct 2014 14:07:34 -0700 (PDT)
Received-SPF: pass (google.com: domain of Jens.Maurer@gmx.net designates 212.227.15.19 as permitted sender) client-ip=212.227.15.19;
Original-Received: from [192.168.2.100] ([92.208.227.175]) by mail.gmx.com (mrgmx003)
 with ESMTPSA (Nemesis) id 0LbMF8-1Y4CuS0u7O-00kuXc for
 <std-proposals@isocpp.org>; Thu, 09 Oct 2014 23:07:34 +0200
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1
In-Reply-To: <CAGg_6+NLr_7ALvTzDch9pyCzeAB2jpzr4_d9WKMjQmnEGccKNg@mail.gmail.com>
X-Provags-ID: V03:K0:ky45rDw5nRYJKMWkzMGUrsyPN0OMdplYkMYnqpo80k32dVrf66H
 o4492A/IPN/7kdr4Ii4rSDRUm7xMZrey/ibLwRU6/QFET1TbIT2ETSbg6Epkm0FVixvFDW6
 ZJE7wQk2FRqmAsWkrvnGx7PBj2PenW403pU1YrPQ9QJWg/+8GWcqS1LAy2gvR+ua1NMwXH1
 f8jy/iPbV9yUSSzpXqXFg==
X-UI-Out-Filterresults: notjunk:1;
X-Original-Sender: Jens.Maurer@gmx.net
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of Jens.Maurer@gmx.net designates 212.227.15.19 as permitted sender) smtp.mail=Jens.Maurer@gmx.net
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:13800
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/13800>

On 10/09/2014 06:38 PM, Nevin Liber wrote:
> On 9 October 2014 09:28, Olaf van der Spek <olafvdspek@gmail.com <mailto:olafvdspek@gmail.com>> wrote:
> 
>     I know, but what were there arguments in relation to boost's get_pointer?
> 
> 
> I wasn't in Issaquah (or I would have voted against that).  According to the LEWG wiki, it was Eric Niebler's suggestion, but there are no other notes on it, other than the vote (6 weakly in favor, 5 neutral).
> 
> Anyway, I'll add Boost's get_pointer to the document, and bring it up during the discussion.

My suggestion would be not to refer to a global get_pointer() or to_pointer(),
but add a member to std::iterator_traits<>.  For the specialization for C-style
pointers, this is essentially a no-op.  For the generic template, which defers
to members of the iterator class itself, it seems natural to include
the to_pointer() as a static member of the iterator class and let
std::iterator_traits<> redirect there.

I don't think there's a third choice for an iterator beyond C-style pointer
and a class.

Jens

-- 

--- 
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/.

.
