220 5852 <CAGsORuCDbX4k2ZOcnoR1QwfQoain5anNrm1as5wvpe38Vg=iow@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Zhihao Yuan <zy@miator.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Remove vector<bool>?
Date: Mon, 26 Aug 2013 19:57:53 -0400
Lines: 28
Approved: news@gmane.org
Message-ID: <CAGsORuCDbX4k2ZOcnoR1QwfQoain5anNrm1as5wvpe38Vg=iow@mail.gmail.com>
References: <CAGsORuDQdeWAO5yjA6=h0hW9Y0Sj4F1gcHB61udw5JFmtx+g4Q@mail.gmail.com>	<b06daeb3-a585-4c55-aebf-cae643146838@isocpp.org>	<CAGg_6+O_d85CBjT+cTV6vQqepUTXVvUMV_QUioS6ELpQCav6GQ@mail.gmail.com>	<521B07D2.8070000@beamways.com>	<7d0bc129-f8aa-4803-bbd9-bd5ca504d728@isocpp.org>	<CAGsORuB8omCBfjco6i_zENDn23tx-5wg1jeHuhsGsiVMbGk+Ww@mail.gmail.com>	<77e0868c-6aed-4578-acc7-7cf1227465f6@isocpp.org>	<CAGsORuAAZChA8cyx4JTTqRmMNSGQXZyGdzrm9P0WVRMZSSg6Qw@mail.gmail.com>	<4E5B6BD9-363D-4B42-ACA3-029301F3F54E@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1377561708 16815 80.91.229.3 (27 Aug 2013 00:01:48 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 27 Aug 2013 00:01:48 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCSKRWMD4EHBB3GY56IAKGQE62YFSHQ@isocpp.org Tue Aug 27 02:01:51 2013
Return-path: <std-proposals+bncBCSKRWMD4EHBB3GY56IAKGQE62YFSHQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qc0-f198.google.com ([209.85.216.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCSKRWMD4EHBB3GY56IAKGQE62YFSHQ@isocpp.org>)
	id 1VE6jG-0008VG-6h
	for gclcip-std-proposals@m.gmane.org; Tue, 27 Aug 2013 02:01:50 +0200
Original-Received: by mail-qc0-f198.google.com with SMTP id a11sf4527299qcx.9
        for <gclcip-std-proposals@m.gmane.org>; Mon, 26 Aug 2013 17:01:49 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :sender: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=7h8J7JhhHCDrFE8FR7fHr0ALLPDVvCXOL2ipIgLHYek=;
        b=Xj+m8Kx+NmSu6gkhSa/hNZ0OAJEPoWvbMtsxB9vBAoH8N58Xk8yheN2zOz0lv+0HmH
         iYTcPCKAGV9oS6ZJoStzLwzuctn/DVK8Qu2N2qtTBN37+MUvEtSN7J+YQjjm1cVynVIU
         0wwKA7SwSvcQuVOz6zsQ6CsaKF8YqMTZ9vyDZ7ob08WkHE6f6b9ZC/3/YgyU6L7P7AhU
         LqzYVCz+J3pP4218kxJn821nqH0xntPr0LfV9uNd3IEJuxh2VV602LQYOPQmDTnMbtNc
         PI4gFcaUcF0KZIFxW49ctz2YwzgukYwGvwDKFI45v8WKtnZvYt6q0079zDfENkjRTqNy
         4snw==
X-Received: by 10.236.161.137 with SMTP id w9mr1966679yhk.49.1377561709285;
        Mon, 26 Aug 2013 17:01:49 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.82.114 with SMTP id h18ls793094qey.12.gmail; Mon, 26 Aug
 2013 17:01:48 -0700 (PDT)
X-Received: by 10.236.13.3 with SMTP id a3mr17372580yha.21.1377561708822;
        Mon, 26 Aug 2013 17:01:48 -0700 (PDT)
Original-Received: from mail-s68.mailgun.info (mail-s68.mailgun.info. [184.173.153.196])
        by mx.google.com with ESMTP id w24si7487321yhg.337.1969.12.31.16.00.00;
        Mon, 26 Aug 2013 17:01:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of bounce+3f9131.69110-std-proposals=isocpp.org@miator.net designates 184.173.153.196 as permitted sender) client-ip=184.173.153.196;
Original-Received: from mail-vb0-f51.google.com (mail-vb0-f51.google.com
 [209.85.212.51]) by mxa.mailgun.org with ESMTP id
 521beb81.7fda64b49bf0-in3; Mon, 26 Aug 2013 23:57:53 -0000 (UTC)
Original-Received: by mail-vb0-f51.google.com with SMTP id x16so2488844vbf.24 for
 <std-proposals@isocpp.org>; Mon, 26 Aug 2013 16:57:53 -0700 (PDT)
X-Received: by 10.52.99.66 with SMTP id eo2mr2822165vdb.18.1377561473148;
 Mon, 26 Aug 2013 16:57:53 -0700 (PDT)
Original-Received: by 10.220.250.6 with HTTP; Mon, 26 Aug 2013 16:57:53 -0700 (PDT)
In-Reply-To: <4E5B6BD9-363D-4B42-ACA3-029301F3F54E@gmail.com>
X-Mailgun-Sid: WyI3MTBkYiIsICJzdGQtcHJvcG9zYWxzQGlzb2NwcC5vcmciLCAiNjkxMTAiXQ==
Original-Sender: zy@miator.net
X-Original-Sender: zy@miator.net
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of bounce+3f9131.69110-std-proposals=isocpp.org@miator.net designates
 184.173.153.196 as permitted sender) smtp.mail=bounce+3f9131.69110-std-proposals=isocpp.org@miator.net;
       dkim=pass header.i=@miator.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: <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:5852
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/5852>

On Mon, Aug 26, 2013 at 7:22 PM, Howard Hinnant
<howard.hinnant@gmail.com> wrote:
> Question for Zhihao:
>
> Why does forward iterator's operator*() have to return a value_type& ?
>
> I'm well aware that this is what C++98/03/11 requires.  That's not what I'm asking.  I'm asking what is the benefit of this requirement in the C++1y context?  What problem does this requirement solve?

Afaics, it makes the pointed object modifiable.  And move_iterator
significantly benefits from it.  (Here is something I'm not sure:
move_iterator requires only InputIterator, while dereferencing an
InputIterator may return anything convertible to T -- is there anything
broken here?)

-- 
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/

-- 

--- 
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/.

.
