Topic: stoi (stoll ...) accept string_view [insted of] string
Author: yanp.bugz@gmail.com
Date: Wed, 15 Mar 2017 08:54:57 -0700 (PDT)
Raw View
------=_Part_2928_583848976.1489593297379
Content-Type: multipart/alternative;
boundary="----=_Part_2929_311477911.1489593297379"
------=_Part_2929_311477911.1489593297379
Content-Type: text/plain; charset=UTF-8
I suggest adding string_view overloads to this group of functions. I guess
the reason why is obvious.
--
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/2cd1e281-4a9f-4cbe-b04d-7f5739b5cf6f%40isocpp.org.
------=_Part_2929_311477911.1489593297379
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I suggest adding string_view overloads to this group of fu=
nctions. I guess the reason why is obvious.<br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/2cd1e281-4a9f-4cbe-b04d-7f5739b5cf6f%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/2cd1e281-4a9f-4cbe-b04d-7f5739b5cf6f=
%40isocpp.org</a>.<br />
------=_Part_2929_311477911.1489593297379--
------=_Part_2928_583848976.1489593297379--
.
Author: Nicol Bolas <jmckesson@gmail.com>
Date: Wed, 15 Mar 2017 09:08:05 -0700 (PDT)
Raw View
------=_Part_4528_589534026.1489594086087
Content-Type: multipart/alternative;
boundary="----=_Part_4529_365815066.1489594086088"
------=_Part_4529_365815066.1489594086088
Content-Type: text/plain; charset=UTF-8
On Wednesday, March 15, 2017 at 11:54:57 AM UTC-4, yanp...@gmail.com wrote:
>
> I suggest adding string_view overloads to this group of functions. I guess
> the reason why is obvious.
>
Personally, I'd rather have `string_view` overloads of the `from_chars`
functions <http://en.cppreference.com/w/cpp/utility/from_chars>. Let `stoi`
and its ilk die.
--
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/a752b345-e365-4c05-a548-7782b19b196d%40isocpp.org.
------=_Part_4529_365815066.1489594086088
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">On Wednesday, March 15, 2017 at 11:54:57 AM UTC-4, yanp...=
@gmail.com wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margi=
n-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"l=
tr">I suggest adding string_view overloads to this group of functions. I gu=
ess the reason why is obvious.<br></div></blockquote><div><br>Personally, I=
'd rather have `string_view` overloads of the <a href=3D"http://en.cppr=
eference.com/w/cpp/utility/from_chars">`from_chars` functions</a>. Let `sto=
i` and its ilk die.<br></div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/a752b345-e365-4c05-a548-7782b19b196d%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/a752b345-e365-4c05-a548-7782b19b196d=
%40isocpp.org</a>.<br />
------=_Part_4529_365815066.1489594086088--
------=_Part_4528_589534026.1489594086087--
.
Author: yanp.bugz@gmail.com
Date: Wed, 15 Mar 2017 09:52:59 -0700 (PDT)
Raw View
------=_Part_2879_11748965.1489596779281
Content-Type: multipart/alternative;
boundary="----=_Part_2880_1310496326.1489596779281"
------=_Part_2880_1310496326.1489596779281
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I don't see any replacement for stoi. It is compact instead of from_chars=
=20
and strtol; handles errors (via exceptions, which are hated by some devs),=
=20
handier than streams.
=D1=81=D1=80=D0=B5=D0=B4=D0=B0, 15 =D0=BC=D0=B0=D1=80=D1=82=D0=B0 2017 =D0=
=B3., 19:08:06 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=
=D0=B5=D0=BB=D1=8C Nicol Bolas =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
>
> On Wednesday, March 15, 2017 at 11:54:57 AM UTC-4, yanp...@gmail.com=20
> wrote:
>>
>> I suggest adding string_view overloads to this group of functions. I=20
>> guess the reason why is obvious.
>>
>
> Personally, I'd rather have `string_view` overloads of the `from_chars`=
=20
> functions <http://en.cppreference.com/w/cpp/utility/from_chars>. Let=20
> `stoi` and its ilk die.
>
--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/6d0fbbab-c51f-4928-9901-ea5c9faba76a%40isocpp.or=
g.
------=_Part_2880_1310496326.1489596779281
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I don't see any replacement for stoi. It is compact in=
stead of from_chars and strtol; handles errors (via exceptions, which are h=
ated by some devs), handier than streams.<br><br>=D1=81=D1=80=D0=B5=D0=B4=
=D0=B0, 15 =D0=BC=D0=B0=D1=80=D1=82=D0=B0 2017 =D0=B3., 19:08:06 UTC+3 =D0=
=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Nicol=
Bolas =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:<blockquote class=3D"gmai=
l_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;=
padding-left: 1ex;"><div dir=3D"ltr">On Wednesday, March 15, 2017 at 11:54:=
57 AM UTC-4, <a>yanp...@gmail.com</a> wrote:<blockquote class=3D"gmail_quot=
e" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-l=
eft:1ex"><div dir=3D"ltr">I suggest adding string_view overloads to this gr=
oup of functions. I guess the reason why is obvious.<br></div></blockquote>=
<div><br>Personally, I'd rather have `string_view` overloads of the <a =
href=3D"http://en.cppreference.com/w/cpp/utility/from_chars" target=3D"_bla=
nk" rel=3D"nofollow" onmousedown=3D"this.href=3D'http://www.google.com/=
url?q\x3dhttp%3A%2F%2Fen.cppreference.com%2Fw%2Fcpp%2Futility%2Ffrom_chars\=
x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFGjfZnbqLdsMssQqtty_VHnQFOsw';r=
eturn true;" onclick=3D"this.href=3D'http://www.google.com/url?q\x3dhtt=
p%3A%2F%2Fen.cppreference.com%2Fw%2Fcpp%2Futility%2Ffrom_chars\x26sa\x3dD\x=
26sntz\x3d1\x26usg\x3dAFQjCNFGjfZnbqLdsMssQqtty_VHnQFOsw';return true;"=
>`from_chars` functions</a>. Let `stoi` and its ilk die.<br></div></div></b=
lockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/6d0fbbab-c51f-4928-9901-ea5c9faba76a%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/6d0fbbab-c51f-4928-9901-ea5c9faba76a=
%40isocpp.org</a>.<br />
------=_Part_2880_1310496326.1489596779281--
------=_Part_2879_11748965.1489596779281--
.