Topic: template < class T, class Alloc = allocator<T>,
Author: Thiago Macieira <thiago@macieira.org>
Date: Fri, 13 Nov 2015 11:30:28 -0800
Raw View
On Friday 13 November 2015 11:21:41 Cleiton Santoia wrote:
> What do you guys think of introduce a new parameter in the vector template,
Please don't. I don't need to read the rest of the email to object to it.
If you introduce a template new parameter, you've broken binary compatibility
with everything.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
--
---
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/.
.
Author: Cleiton Santoia <cleitonsantoia@gmail.com>
Date: Fri, 13 Nov 2015 11:38:59 -0800 (PST)
Raw View
------=_Part_11596_2053359076.1447443539843
Content-Type: multipart/alternative;
boundary="----=_Part_11597_1729994171.1447443539844"
------=_Part_11597_1729994171.1447443539844
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Well I suppose something bad would happens because I didn=C2=B4t see much o=
f=20
this type of proposals anyway, but I=C2=B4m shamed to admit that I don=C2=
=B4t know=20
exactly how it happens.
Please, can you explain me a little more detailed how it ?
Em sexta-feira, 13 de novembro de 2015 17:30:36 UTC-2, Thiago Macieira=20
escreveu:
>
> On Friday 13 November 2015 11:21:41 Cleiton Santoia wrote:=20
> > What do you guys think of introduce a new parameter in the vector=20
> template,=20
>
> Please don't. I don't need to read the rest of the email to object to it.=
=20
>
> If you introduce a template new parameter, you've broken binary=20
> compatibility=20
> with everything.=20
> --=20
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org=20
> Software Architect - Intel Open Source Technology Center=20
> PGP/GPG: 0x6EF45358; fingerprint:=20
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358=20
>
>
--=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_11597_1729994171.1447443539844
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Well I suppose something bad would happens because I didn=
=C2=B4t see much of this type of proposals anyway, but I=C2=B4m shamed to a=
dmit that I don=C2=B4t know exactly how it happens.<div><br></div><div>Plea=
se, can you explain me a little more detailed how it ?</div><div><br></div>=
<div><br></div><div><br>Em sexta-feira, 13 de novembro de 2015 17:30:36 UTC=
-2, Thiago Macieira escreveu:<blockquote class=3D"gmail_quote" style=3D"ma=
rgin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">=
On Friday 13 November 2015 11:21:41 Cleiton Santoia wrote:
<br>> What do you guys think of introduce a new parameter in the vector =
template,=20
<br>
<br>Please don't. I don't need to read the rest of the email to obj=
ect to it.
<br>
<br>If you introduce a template new parameter, you've broken binary com=
patibility=20
<br>with everything.
<br>--=20
<br>Thiago Macieira - thiago (AT) <a href=3D"http://macieira.info" target=
=3D"_blank" rel=3D"nofollow" onmousedown=3D"this.href=3D'http://www.goo=
gle.com/url?q\75http%3A%2F%2Fmacieira.info\46sa\75D\46sntz\0751\46usg\75AFQ=
jCNEswDUBNCNanbu7euhqLn_62FW8ag';return true;" onclick=3D"this.href=3D&=
#39;http://www.google.com/url?q\75http%3A%2F%2Fmacieira.info\46sa\75D\46snt=
z\0751\46usg\75AFQjCNEswDUBNCNanbu7euhqLn_62FW8ag';return true;">maciei=
ra.info</a> - thiago (AT) <a href=3D"http://kde.org" target=3D"_blank" rel=
=3D"nofollow" onmousedown=3D"this.href=3D'http://www.google.com/url?q\7=
5http%3A%2F%2Fkde.org\46sa\75D\46sntz\0751\46usg\75AFQjCNHGRJdo5_JYG1Dowztw=
AHAKs80XSA';return true;" onclick=3D"this.href=3D'http://www.google=
..com/url?q\75http%3A%2F%2Fkde.org\46sa\75D\46sntz\0751\46usg\75AFQjCNHGRJdo=
5_JYG1DowztwAHAKs80XSA';return true;">kde.org</a>
<br>=C2=A0 =C2=A0Software Architect - Intel Open Source Technology Center
<br>=C2=A0 =C2=A0 =C2=A0 PGP/GPG: 0x6EF45358; fingerprint:
<br>=C2=A0 =C2=A0 =C2=A0 E067 918B B660 DBD1 105C =C2=A0966C 33F5 F005 6EF4=
5358
<br>
<br></blockquote></div></div>
<p></p>
-- <br />
<br />
--- <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 />
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_11597_1729994171.1447443539844--
------=_Part_11596_2053359076.1447443539843--
.
Author: Nevin Liber <nevin@eviloverlord.com>
Date: Fri, 13 Nov 2015 13:53:03 -0600
Raw View
--089e01419faaa3124d0524716a5e
Content-Type: text/plain; charset=UTF-8
On 13 November 2015 at 13:30, Thiago Macieira <thiago@macieira.org> wrote:
> On Friday 13 November 2015 11:21:41 Cleiton Santoia wrote:
> > What do you guys think of introduce a new parameter in the vector
> template,
>
> Please don't. I don't need to read the rest of the email to object to it.
>
> If you introduce a template new parameter, you've broken binary
> compatibility
> with everything.
>
+1. This isn't to say that the committee won't break an ABI, but you need
extremely strong motivation to do so.
If you really need this functionality, you can wrap vector in your own type
that calls reserve() at the appropriate times (especially since I heard
n4524 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4524.pdf>
was received favorably in Kona).
--
Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> +1-847-691-1404
--
---
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/.
--089e01419faaa3124d0524716a5e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">On 13 November 2015 at 13:30, Thiago Macieira <span dir=3D=
"ltr"><<a href=3D"mailto:thiago@macieira.org" target=3D"_blank">thiago@m=
acieira.org</a>></span> wrote:<br><div class=3D"gmail_extra"><div class=
=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Friday 13 November=
2015 11:21:41 Cleiton Santoia wrote:<br>
> What do you guys think of introduce a new parameter in the vector temp=
late,<br>
<br>
</span>Please don't. I don't need to read the rest of the email to =
object to it.<br>
<br>
If you introduce a template new parameter, you've broken binary compati=
bility<br>
with everything.<br></blockquote><div><br></div><div>+1.=C2=A0 This isn'=
;t to say that the committee won't break an ABI, but you need extremely=
strong motivation to do so.</div><div><br></div><div>If you really need th=
is functionality, you can wrap vector in your own type that calls reserve()=
at the appropriate times (especially since I heard <a href=3D"http://www.o=
pen-std.org/jtc1/sc22/wg21/docs/papers/2015/n4524.pdf" target=3D"_blank">n4=
524</a> was received favorably in Kona).</div><div>--=C2=A0<br></div></div>=
<div><div dir=3D"ltr"><div><div dir=3D"ltr"><div>=C2=A0Nevin ":-)"=
; Liber=C2=A0 <mailto:<a href=3D"mailto:nevin@eviloverlord.com" target=
=3D"_blank">nevin@eviloverlord.com</a>> =C2=A0<a href=3D"tel:%2B1-847-69=
1-1404" value=3D"+18476911404" target=3D"_blank">+1-847-691-1404</a></div><=
/div></div></div></div>
</div></div>
<p></p>
-- <br />
<br />
--- <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 />
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 />
--089e01419faaa3124d0524716a5e--
.
Author: Cleiton Santoia <cleitonsantoia@gmail.com>
Date: Fri, 13 Nov 2015 16:56:28 -0800 (PST)
Raw View
------=_Part_2_386483387.1447462588712
Content-Type: multipart/alternative;
boundary="----=_Part_3_45981684.1447462588713"
------=_Part_3_45981684.1447462588713
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Finally I found this:
*Reason*: the mangling of the functions related to this template type=20
change because its template expansion changes too. This can happen both for=
=20
member functions (for example, the constructor) as well as functions that=
=20
take it as a parameter.
Em sexta-feira, 13 de novembro de 2015 17:38:59 UTC-2, Cleiton Santoia=20
escreveu:
>
> Well I suppose something bad would happens because I didn=C2=B4t see much=
of=20
> this type of proposals anyway, but I=C2=B4m shamed to admit that I don=C2=
=B4t know=20
> exactly how it happens.
>
> Please, can you explain me a little more detailed how it ?
>
>
>
> Em sexta-feira, 13 de novembro de 2015 17:30:36 UTC-2, Thiago Macieira=20
> escreveu:
>>
>> On Friday 13 November 2015 11:21:41 Cleiton Santoia wrote:=20
>> > What do you guys think of introduce a new parameter in the vector=20
>> template,=20
>>
>> Please don't. I don't need to read the rest of the email to object to it=
..=20
>>
>> If you introduce a template new parameter, you've broken binary=20
>> compatibility=20
>> with everything.=20
>> --=20
>> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org=20
>> Software Architect - Intel Open Source Technology Center=20
>> PGP/GPG: 0x6EF45358; fingerprint:=20
>> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358=20
>>
>>
--=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_3_45981684.1447462588713
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><br></div><div>Finally I found this:</div><div><br></=
div><div><b style=3D"color: rgb(46, 52, 54); font-family: 'Open Sans=
9;, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px=
; line-height: 22.4px;">Reason</b><span style=3D"color: rgb(46, 52, 54); fo=
nt-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial,=
sans-serif; font-size: 14px; line-height: 22.4px;">: the mangling of the f=
unctions related to this template type change because its template expansio=
n changes too. This can happen both for member functions (for example, the =
constructor) as well as functions that take it as a parameter.</span><br></=
div><div><br></div><div><br></div>Em sexta-feira, 13 de novembro de 2015 17=
:38:59 UTC-2, Cleiton Santoia escreveu:<blockquote class=3D"gmail_quote" s=
tyle=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-le=
ft: 1ex;"><div dir=3D"ltr">Well I suppose something bad would happens becau=
se I didn=C2=B4t see much of this type of proposals anyway, but I=C2=B4m sh=
amed to admit that I don=C2=B4t know exactly how it happens.<div><br></div>=
<div>Please, can you explain me a little more detailed how it ?</div><div><=
br></div><div><br></div><div><br>Em sexta-feira, 13 de novembro de 2015 17:=
30:36 UTC-2, Thiago Macieira escreveu:<blockquote class=3D"gmail_quote" st=
yle=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1=
ex">On Friday 13 November 2015 11:21:41 Cleiton Santoia wrote:
<br>> What do you guys think of introduce a new parameter in the vector =
template,=20
<br>
<br>Please don't. I don't need to read the rest of the email to obj=
ect to it.
<br>
<br>If you introduce a template new parameter, you've broken binary com=
patibility=20
<br>with everything.
<br>--=20
<br>Thiago Macieira - thiago (AT) <a href=3D"http://macieira.info" rel=3D"n=
ofollow" target=3D"_blank" onmousedown=3D"this.href=3D'http://www.googl=
e.com/url?q\75http%3A%2F%2Fmacieira.info\46sa\75D\46sntz\0751\46usg\75AFQjC=
NEswDUBNCNanbu7euhqLn_62FW8ag';return true;" onclick=3D"this.href=3D=
9;http://www.google.com/url?q\75http%3A%2F%2Fmacieira.info\46sa\75D\46sntz\=
0751\46usg\75AFQjCNEswDUBNCNanbu7euhqLn_62FW8ag';return true;">macieira=
..info</a> - thiago (AT) <a href=3D"http://kde.org" rel=3D"nofollow" target=
=3D"_blank" onmousedown=3D"this.href=3D'http://www.google.com/url?q\75h=
ttp%3A%2F%2Fkde.org\46sa\75D\46sntz\0751\46usg\75AFQjCNHGRJdo5_JYG1DowztwAH=
AKs80XSA';return true;" onclick=3D"this.href=3D'http://www.google.c=
om/url?q\75http%3A%2F%2Fkde.org\46sa\75D\46sntz\0751\46usg\75AFQjCNHGRJdo5_=
JYG1DowztwAHAKs80XSA';return true;">kde.org</a>
<br>=C2=A0 =C2=A0Software Architect - Intel Open Source Technology Center
<br>=C2=A0 =C2=A0 =C2=A0 PGP/GPG: 0x6EF45358; fingerprint:
<br>=C2=A0 =C2=A0 =C2=A0 E067 918B B660 DBD1 105C =C2=A0966C 33F5 F005 6EF4=
5358
<br>
<br></blockquote></div></div></blockquote></div>
<p></p>
-- <br />
<br />
--- <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 />
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_3_45981684.1447462588713--
------=_Part_2_386483387.1447462588712--
.