220 7203 <fa5ffc25-0e50-4579-9de8-227edf018e40@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Evgeny Panasyuk <evgeny.panasyuk@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: "count_while" and "count_until" algorithms
Date: Tue, 8 Oct 2013 15:59:48 -0700 (PDT)
Lines: 130
Approved: news@gmane.org
Message-ID: <fa5ffc25-0e50-4579-9de8-227edf018e40@isocpp.org>
References: <CAOpASk64dV+3ZUW+Z8wcEqug_oSaztvJp1zsDB_QdAxi+fwcsA@mail.gmail.com>
 <fe7981d7-4eaf-4132-9150-4ec7d3ff7ac4@isocpp.org>
 <2602b3fd-fccd-459b-be1a-93a12005dc5c@isocpp.org>
 <231e6ef1-599d-4877-be6c-55e85e5a4e41@isocpp.org>
 <6e15fc38-8be3-4e74-ade9-e25a8d0e0509@isocpp.org>
 <2a52a3ad-4fe6-4f77-870c-2a26c2e10e52@isocpp.org>
 <CAGNvRgC5fFHPm4_i_W1jvE7HJePvw+Es10um2ebdp+UJt6N9Jg@mail.gmail.com>
 <ae42bc17-7f3a-46e9-9f72-03c0a109d817@isocpp.org>
 <CAGNvRgAFNn_An3mAiczP5Ldf8er6xcGH_Cu1OsanhtxLCwQ2uQ@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_993_6675106.1381273188716"
X-Trace: ger.gmane.org 1381273187 29560 80.91.229.3 (8 Oct 2013 22:59:47 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 8 Oct 2013 22:59:47 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC54TLGKR4LBBZU42KJAKGQER2TOIVY@isocpp.org Wed Oct 09 00:59:53 2013
Return-path: <std-proposals+bncBC54TLGKR4LBBZU42KJAKGQER2TOIVY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f198.google.com ([209.85.214.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC54TLGKR4LBBZU42KJAKGQER2TOIVY@isocpp.org>)
	id 1VTgFs-0003aK-6l
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Oct 2013 00:59:52 +0200
Original-Received: by mail-ob0-f198.google.com with SMTP id va2sf5126159obc.9
        for <gclcip-std-proposals@m.gmane.org>; Tue, 08 Oct 2013 15:59:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=laey7fP6H53K7YdBTxRTKGbdpHRRKiviYLsQTCdP7qk=;
        b=EqjaGae3cSPsI/KL5bqTzNKXYos6yUpzqgLQ8crHBMlnyxCOKQNC9jPgHbHEVaD6Mr
         3WnmE+4LhUtD/8D4T5hWA+7ndMF8bvdLbEkndoGWGAxrn5BPykV3E5nQwdIXyuP6FaxJ
         bm03RP5Nbs3weNY1mEAsY4IK4ViicSpkjxA9yvH1rNvvgqITaX8cilF9HUBqSHHJcpk0
         xkvUpk6mIQlQSPEyksVSsTPjDD5X+/GvBiYvVMiuHmUjZfUPggL6CBj3bjnQfYRGaGMc
         10IwZRLGHCBWN2Mu5k/pHqg6jt2aSZ7z4pPICZ0rDv7eX6XsnSiSLfbYkek4H+xbxNDS
         pYdg==
X-Received: by 10.50.134.166 with SMTP id pl6mr71155igb.2.1381273191179;
        Tue, 08 Oct 2013 15:59:51 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.134.200 with SMTP id pm8ls1383786igb.2.canary; Tue, 08 Oct
 2013 15:59:50 -0700 (PDT)
X-Received: by 10.50.22.35 with SMTP id a3mr550igf.17.1381273190628;
        Tue, 08 Oct 2013 15:59:50 -0700 (PDT)
In-Reply-To: <CAGNvRgAFNn_An3mAiczP5Ldf8er6xcGH_Cu1OsanhtxLCwQ2uQ@mail.gmail.com>
X-Original-Sender: evgeny.panasyuk@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>, <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:7203
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7203>

------=_Part_993_6675106.1381273188716
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

 9 oct 2013 =D0=B3., 1:17:17 UTC+4 Daniel Kr=C3=BCgler :
>
> 2013/10/8 Evgeny Panasyuk <evgeny....@gmail.com <javascript:>>:=20
> > 9 oct 2013 =D0=B3., 1:00:37 UTC+4 Daniel Kr=C3=BCgler:=20
> >> See also=20
> >> http://cplusplus.github.io/LWG/lwg-active.html#2242=20
> >> for another miss of useful information.=20
> >> Unfortunately,=20
> >> http://cplusplus.github.io/LWG/lwg-closed.html#1313=20
> >> was declared NAD. I think I will re-raise it soon.=20
> >=20
> > That is unfortunate. But I am not sure how it can be fixed. New=20
> algorithm or=20
> > breaking change?=20
>
> I think the chances are good that the return type will be changed. We=20
> did so in similar cases, such as in=20
>
> http://cplusplus.github.io/LWG/lwg-defects.html#488=20
> http://cplusplus.github.io/LWG/lwg-defects.html#865=20
>

These are a bit different case - originally they had void return type, and=
=20
it is easy to change void to something.
But in case of std::copy_n - it already has some return type, and change of=
=20
that type would be breaking change.
=20

>
> > I remember that Alexander Stepanov mentioned that issue in "Efficient=
=20
> > Programming with Components".=20
> > He said something like: "First they throw away counted ranges for C++98=
..=20
> In=20
> > C++11 they tried to return something, but did it wrong."  (maybe I will=
=20
> find=20
> > link a bit later).=20
>
> ;-)=20
>

Ok, I have found that moment regarding copy_n:=20
http://www.youtube.com/watch?v=3DdUEA8fHx0r0&t=3D35m14s

--=20

---=20
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 e=
mail 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-proposa=
ls/.

------=_Part_993_6675106.1381273188716
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">&nbsp;9 oct 2013&nbsp;=D0=B3., 1:17:17 UTC+4 Daniel Kr=C3=
=BCgler :<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: =
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">2013/10/8 Evgeny Pana=
syuk &lt;<a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D=
"9tvIHUiEc0IJ">evgeny....@gmail.com</a>&gt;:
<br>&gt; 9 oct 2013 =D0=B3., 1:00:37 UTC+4 Daniel Kr=C3=BCgler:
<br>&gt;&gt; See also
<br>&gt;&gt; <a href=3D"http://cplusplus.github.io/LWG/lwg-active.html#2242=
" target=3D"_blank">http://cplusplus.github.io/<wbr>LWG/lwg-active.html#224=
2</a>
<br>&gt;&gt; for another miss of useful information.
<br>&gt;&gt; Unfortunately,
<br>&gt;&gt; <a href=3D"http://cplusplus.github.io/LWG/lwg-closed.html#1313=
" target=3D"_blank">http://cplusplus.github.io/<wbr>LWG/lwg-closed.html#131=
3</a>
<br>&gt;&gt; was declared NAD. I think I will re-raise it soon.
<br>&gt;
<br>&gt; That is unfortunate. But I am not sure how it can be fixed. New al=
gorithm or
<br>&gt; breaking change?
<br>
<br>I think the chances are good that the return type will be changed. We
<br>did so in similar cases, such as in
<br>
<br><a href=3D"http://cplusplus.github.io/LWG/lwg-defects.html#488" target=
=3D"_blank">http://cplusplus.github.io/<wbr>LWG/lwg-defects.html#488</a>
<br><a href=3D"http://cplusplus.github.io/LWG/lwg-defects.html#865" target=
=3D"_blank">http://cplusplus.github.io/<wbr>LWG/lwg-defects.html#865</a>
<br></blockquote><div><br>These are a bit different case - originally they =
had void return type, and it is easy to change void to something.<br>But in=
 case of std::copy_n - it already has some return type, and change of that =
type would be breaking change.<br>&nbsp;</div><blockquote class=3D"gmail_qu=
ote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padd=
ing-left: 1ex;">
<br>&gt; I remember that Alexander Stepanov mentioned that issue in "Effici=
ent
<br>&gt; Programming with Components".
<br>&gt; He said something like: "First they throw away counted ranges for =
C++98. In
<br>&gt; C++11 they tried to return something, but did it wrong." &nbsp;(ma=
ybe I will find
<br>&gt; link a bit later).
<br>
<br>;-)
<br></blockquote><div><br>Ok, I have found that moment regarding copy_n: ht=
tp://www.youtube.com/watch?v=3DdUEA8fHx0r0&amp;t=3D35m14s<br></div></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/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_993_6675106.1381273188716--

.
