220 19282 <3738608.WBNOfLZSsY@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Overloading std::begin and std::end for std::pair
Date: Sat, 25 Jul 2015 10:40:23 -0700
Lines: 28
Approved: news@gmane.org
Message-ID: <3738608.WBNOfLZSsY@tjmaciei-mobl4>
References: <012fd35d-96fd-4775-835e-2105176c4f97@isocpp.org> <b5273848-aef0-407f-8aa6-e07a9ae9ac8c@isocpp.org> <2538311b-63f0-4242-b826-3d115439de78@isocpp.org>
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 1437846035 12274 80.91.229.3 (25 Jul 2015 17:40:35 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 25 Jul 2015 17:40:35 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBCUUZ6WQKGQEEAXRSIA@isocpp.org Sat Jul 25 19:40:28 2015
Return-path: <std-proposals+bncBCB4TK757YBRBCUUZ6WQKGQEEAXRSIA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f200.google.com ([209.85.212.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBCUUZ6WQKGQEEAXRSIA@isocpp.org>)
	id 1ZJ3Qx-0003IV-Vx
	for gclcip-std-proposals@m.gmane.org; Sat, 25 Jul 2015 19:40:28 +0200
Original-Received: by wicmm11 with SMTP id mm11sf16016064wic.3
        for <gclcip-std-proposals@m.gmane.org>; Sat, 25 Jul 2015 10:40:27 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version:content-type: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=Hv6nhUyXhhGxwioPgBYXH7i4TGYcb5Uk4v3G2WQd5Yo=;
        b=CZDUis7nFEoqRr8siXA4S/BVjrGCWi3u07eJkJMO+oLBXIEr9S5nfcahTgRh6qkVnd
         xcyPyptHc0dTLmEzch8nTi0JEjYcQc7C0qXc96pbfupd8bKkWFsSC9vWg3TTxAcA4MFJ
         YrosbwcEUBH9hqt89zOEA1mi/HGyysc0VDOEH92H3eXksSc19fI6tIAEhEsbW9m88a8z
         wQAYCqIxDE0uOskp/p3/pBYbZdWjsE00NsFMBmthCcbTPVF+1OWkf2cGR+QGALQetmI5
         Uqss1TxbhUFJXLGlaOSBmWPTA3ikCnX8gKgPJIbuIx6IMYVY2qQTNj4lKL7bkKXJBHIl
         c2Ag= 
X-Gm-Message-State: ALoCoQmp6ZSoyE8h1ZCLBYhKeWhXKT/kpWBrrijJ8MekJSJeKSfZOkjMsBHZd6PaeTh5aXfOKrUY
X-Received: by 10.152.87.46 with SMTP id u14mr6114575laz.5.1437846027291;
        Sat, 25 Jul 2015 10:40:27 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.73.176 with SMTP id m16ls364230wiv.49.gmail; Sat, 25 Jul
 2015 10:40:25 -0700 (PDT)
X-Received: by 10.180.78.73 with SMTP id z9mr8159224wiw.64.1437846025744;
        Sat, 25 Jul 2015 10:40:25 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [78.47.120.188])
        by mx.google.com with ESMTP id x2si21406298wju.175.2015.07.25.10.40.25
        for <std-proposals@isocpp.org>;
        Sat, 25 Jul 2015 10:40:25 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) client-ip=78.47.120.188;
Original-Received: from tjmaciei-mobl4.localnet (unknown [IPv6:2601:1c0:5803:81c9:a88d:786e:676b:dda3])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 0F28811B496
	for <std-proposals@isocpp.org>; Sat, 25 Jul 2015 10:40:25 -0700 (PDT)
User-Agent: KMail/4.14.9 (Linux/4.0.5-3-desktop; KDE/4.14.9; x86_64; ; )
In-Reply-To: <2538311b-63f0-4242-b826-3d115439de78@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mail=thiago@macieira.org
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: <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:19282
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/19282>

On Saturday 25 July 2015 07:10:18 Vlad from Moscow wrote:
> A similar situation takes place with std::pair. There is a basic type that 
> is used to store valid ranges.

Those two sentences are true but the latter does not imply that std::pair is 
that type.

A range is a pair of iterators. But any pair of iterators does not make a 
range. The problem is that a pair is, on itself, a container and could be 
iterated on.

I don't have a problem in providing a way to iterate over a pair of iterators 
as a range. Just don't mess with std::pair.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

-- 

--- 
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/.

.
