220 4866 <CAGsORuBjtg1GO4ink+yS6Gy6ZsmBr2EO3Ax46uOMVRKTZat=pQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Zhihao Yuan <lichray@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Proposal: std::sequence
Date: Tue, 4 Jun 2013 19:20:51 -0400
Lines: 27
Approved: news@gmane.org
Message-ID: <CAGsORuBjtg1GO4ink+yS6Gy6ZsmBr2EO3Ax46uOMVRKTZat=pQ@mail.gmail.com>
References: <4551abbc-43aa-4520-a91a-f8eb25a90588@isocpp.org>
	<e915df62-4930-48ee-a8ac-64261c407234@isocpp.org>
	<2c8e6079-9c87-425a-93e2-39251df57cd8@isocpp.org>
	<CANh-dX=va9uLSbvQc_TRmf8o5TDzQutmkxJDc64g7b=yKyN7sg@mail.gmail.com>
	<9f1cace3-0503-4a3c-a8ce-d7546564b3ef@isocpp.org>
	<a6f024b6-45d6-4c3b-b8a6-3f056aeab51f@isocpp.org>
	<c029551c-241c-4809-adaa-7908434ba10d@isocpp.org>
	<ed3c548d-b470-47ec-850e-95d3c11e29a8@isocpp.org>
	<1c991e6e-6bc3-4822-9ffd-7f2508e63974@isocpp.org>
	<CADfx-VTw0ArZ3+JbD=Vv+o9ncwNp9miYy5RD9XXeOFGEE3N0MQ@mail.gmail.com>
	<etPan.51ae6e0b.238e1f29.8d5@server-2.private>
	<CANh-dX=zKENwN_sS84HHOuzeug0NqDiJ0w4D8FtEWFYYhMbfAg@mail.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 1370388055 20486 80.91.229.3 (4 Jun 2013 23:20:55 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 4 Jun 2013 23:20:55 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUILMGRQMARBVHMXGGQKGQERQIWRTQ@isocpp.org Wed Jun 05 01:20:57 2013
Return-path: <std-proposals+bncBCUILMGRQMARBVHMXGGQKGQERQIWRTQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lb0-f197.google.com ([209.85.217.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUILMGRQMARBVHMXGGQKGQERQIWRTQ@isocpp.org>)
	id 1Uk0X7-0007UO-Fh
	for gclcip-std-proposals@m.gmane.org; Wed, 05 Jun 2013 01:20:53 +0200
Original-Received: by mail-lb0-f197.google.com with SMTP id 13sf1293657lba.4
        for <gclcip-std-proposals@m.gmane.org>; Tue, 04 Jun 2013 16:20:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:mime-version:in-reply-to:references:date:message-id
         :subject:from:to:x-original-sender:x-original-authentication-results
         :reply-to:precedence:mailing-list:list-id:x-google-group-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=lFmHyFWQbvN4+Mm3M9XKJX5H/ZkNMESuujJSTiHK2dk=;
        b=tnDcDLD3crtPSr6ybNM5NmNvHzyjq/q5Zu2OQ7thOWVYVVh4EAIAoR61skkxRsSusK
         RL4lmE9K6VeNpLEtZ9yoa7Ue/II1qH2WVkjjROX62quclPf8q5f5DTtWoGzN1i43GUm/
         ZUsKSrm2jvyRXHzYzFHgNOUVUR3XSgMnUfo8eTuda6bbEXgN7dxVXPywDie8Kg4enaKG
         WNvXyRTSleB4q9LRb+AXOG4y/+1r2DCI8Qklznr+UiS8vblgy2t+CCuMnoP1fV8X4qCz
         te5QawAirHDUHVVBJfHiDJ9G2udipHgp7XRRVTpxkA0G6Ejfcz/KU6+8JVvo9Rir/QcJ
         cltg==
X-Received: by 10.152.20.70 with SMTP id l6mr7047244lae.0.1370388052805;
        Tue, 04 Jun 2013 16:20:52 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.120.136 with SMTP id lc8ls34691lab.22.gmail; Tue, 04 Jun
 2013 16:20:51 -0700 (PDT)
X-Received: by 10.152.21.99 with SMTP id u3mr14193848lae.27.1370388051550;
        Tue, 04 Jun 2013 16:20:51 -0700 (PDT)
Original-Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [2a00:1450:4010:c03::229])
        by mx.google.com with ESMTPS id zo5si18888678lbb.219.2013.06.04.16.20.51
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 04 Jun 2013 16:20:51 -0700 (PDT)
Received-SPF: pass (google.com: domain of lichray@gmail.com designates 2a00:1450:4010:c03::229 as permitted sender) client-ip=2a00:1450:4010:c03::229;
Original-Received: by mail-la0-f41.google.com with SMTP id fn20so830126lab.28
        for <std-proposals@isocpp.org>; Tue, 04 Jun 2013 16:20:51 -0700 (PDT)
X-Received: by 10.152.29.169 with SMTP id l9mr14187271lah.31.1370388051240;
 Tue, 04 Jun 2013 16:20:51 -0700 (PDT)
Original-Received: by 10.112.146.99 with HTTP; Tue, 4 Jun 2013 16:20:51 -0700 (PDT)
In-Reply-To: <CANh-dX=zKENwN_sS84HHOuzeug0NqDiJ0w4D8FtEWFYYhMbfAg@mail.gmail.com>
X-Original-Sender: lichray@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of lichray@gmail.com designates 2a00:1450:4010:c03::229 as permitted
 sender) smtp.mail=lichray@gmail.com;       dkim=pass header.i=@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?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:4866
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4866>

On Tue, Jun 4, 2013 at 6:54 PM, Jeffrey Yasskin <jyasskin@google.com> wrote:

> Yeah, you might see a performance difference for non-const
> array_ref<>s where the compiler can't assume they don't change.

Just think const-correctness does not help optimizer.

  http://stackoverflow.com/a/6313818

Aliasing is the thing matters, const-correctness is irrelevant.

--
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/?hl=en.



.
