220 4838 <a13d06cc-9891-415b-ab6c-dc261a87fe7e@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Alex B <devalexb@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Proposal: std::sequence
Date: Mon, 3 Jun 2013 13:47:06 -0700 (PDT)
Lines: 56
Approved: news@gmane.org
Message-ID: <a13d06cc-9891-415b-ab6c-dc261a87fe7e@isocpp.org>
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>
 <dc5d7e0d-6e4e-46a0-ade8-5aaba986ebfc@isocpp.org>
 <CAGg_6+PH2ji7iRGJr99m3jY0iXEs+bHYQeeUD59P+xF5HyOOBA@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_2654_24847219.1370292426166"
X-Trace: ger.gmane.org 1370292431 16473 80.91.229.3 (3 Jun 2013 20:47:11 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 3 Jun 2013 20:47:11 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC7JZJ43WYOBBTEBWSGQKGQETPZY64I@isocpp.org Mon Jun 03 22:47:10 2013
Return-path: <std-proposals+bncBC7JZJ43WYOBBTEBWSGQKGQETPZY64I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f197.google.com ([209.85.214.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC7JZJ43WYOBBTEBWSGQKGQETPZY64I@isocpp.org>)
	id 1Ujbeo-0002wO-5v
	for gclcip-std-proposals@m.gmane.org; Mon, 03 Jun 2013 22:47:10 +0200
Original-Received: by mail-ob0-f197.google.com with SMTP id v19sf27199929obq.0
        for <gclcip-std-proposals@m.gmane.org>; Mon, 03 Jun 2013 13:47:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=q2AVWVOpnMd8nz8N7VKcaWvW/7od6aizuxd8C/dAfnY=;
        b=cFxk6FwJI3q2soh/okIY+qCNWz9ccY/0GxdQy6LQo6HZBAbBKODp6ooT1tkplKuesF
         RdZXr3TsLaemcswc+YzQIjYeFP7B4jUlISnVzvEyl493bHJwnh53XMbn9fUizoUq6XHR
         CndPnINgVSSYLoG3wyYaCrWmtiIGJNhKcFDI4JQpU4Sv9/2nJkHiqoppX5QbJDvRQgGn
         rfw2hDW5whqkbJNEP1QgsMNwN3txY+cJgCRheb3xkP5hmzTx21kkjlOrAFU4kbae5fIA
         ce+WJR5FXTTk+1YMsY5pdGAK6wp+WFe/OHcLjpCRBvZWdO+bAmLFiXXTn6tKoAyijDva
         eW4w==
X-Received: by 10.42.83.141 with SMTP id h13mr18094528icl.14.1370292429110;
        Mon, 03 Jun 2013 13:47:09 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.134.232 with SMTP id pn8ls2388642igb.32.canary; Mon, 03 Jun
 2013 13:47:07 -0700 (PDT)
X-Received: by 10.50.88.37 with SMTP id bd5mr795005igb.8.1370292427462;
        Mon, 03 Jun 2013 13:47:07 -0700 (PDT)
In-Reply-To: <CAGg_6+PH2ji7iRGJr99m3jY0iXEs+bHYQeeUD59P+xF5HyOOBA@mail.gmail.com>
X-Original-Sender: devalexb@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:4838
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4838>

------=_Part_2654_24847219.1370292426166
Content-Type: text/plain; charset=ISO-8859-1



> m[1] = get_array();
>

That's exactly the kind of use case that might not be interpreted properly. 
Some (if not most) users will wrongly assume that the elements will be 
copied.

What about:

m[1].rebind(get_array());

-- 

--- 
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.



------=_Part_2654_24847219.1370292426166
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex=
;border-left: 1px #ccc solid;padding-left: 1ex;"><div class=3D"gmail_quote"=
><div>m[1] =3D get_array();<br clear=3D"all"></div></div>
</blockquote><div><br></div><div>That's exactly the kind of use case that m=
ight not be interpreted properly. Some (if not most) users will wrongly ass=
ume that the elements will be copied.</div><div><br></div><div>What about:<=
br></div><div><br></div><div>m[1].rebind(get_array());</div>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_2654_24847219.1370292426166--

.
