Topic: Make it easier to enable polymorphic compare


Author: Richard Hodges <hodges.r@gmail.com>
Date: Thu, 20 Sep 2018 09:44:42 +0200
Raw View
--000000000000d900a8057648b297
Content-Type: text/plain; charset="UTF-8"

On Thu, 20 Sep 2018 at 09:36, Bengt Gustafsson <
bengt.gustafsson@beamways.com> wrote:

>
>
>> This is exactly what the existing (C++14) std::less<void> specialization
>> does.
>>
>
> Thanks for the information. It is really hard to keep up with all these
> small changes in the library. So now you should declare your maps:
>
> std::map<std::string, MyType, std::less<>> myMap;
>
> Fair enough, if just making it "work" was considered too risky.
>
> It still bothers me that this does not include operator[], and I don't see
> why.
>

I agree, it was a step in the right direction, but nowhere near a large
enough step. The c++ committee seem to me to be (in my view overly)
terrified of breaking backward compatibility.



> --
> 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/9094cc47-cb95-4dd7-8de5-594ae5a84fdb%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/9094cc47-cb95-4dd7-8de5-594ae5a84fdb%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>

--
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/CALvx3hYMUyoErGQjbtZr9QHaajYp275od%3D%3Dhw%3D79%2BRiHh59csg%40mail.gmail.com.

--000000000000d900a8057648b297
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Thu=
, 20 Sep 2018 at 09:36, Bengt Gustafsson &lt;<a href=3D"mailto:bengt.gustaf=
sson@beamways.com">bengt.gustafsson@beamways.com</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px =
#ccc solid;padding-left:1ex"><div dir=3D"ltr"><br><blockquote class=3D"gmai=
l_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;pad=
ding-left:1ex"><div dir=3D"ltr"><div><br></div><div><span style=3D"color:rg=
b(102,0,102)">This</span><span style=3D"color:rgb(0,0,0)">=C2=A0</span><spa=
n style=3D"color:rgb(0,0,136)">is</span><span style=3D"color:rgb(0,0,0)">=
=C2=A0exactly what the existing (C++14)=C2=A0<font face=3D"courier new, mon=
ospace">std</font></span><font face=3D"courier new, monospace"><span style=
=3D"color:rgb(102,102,0)">::</span><span style=3D"color:rgb(0,0,0)">less</s=
pan><span style=3D"color:rgb(0,136,0)">&lt;void&gt;</span></font><span styl=
e=3D"color:rgb(0,0,0)">=C2=A0specialization does</span><span style=3D"color=
:rgb(102,102,0)">.</span></div></div></blockquote><div><br></div><div>Thank=
s for the information. It is really hard to keep up with all these small ch=
anges in the library. So now you should declare your maps:</div><div><br></=
div><div>std::map&lt;std::string, MyType, std::less&lt;&gt;&gt; myMap;</div=
><div><br></div><div>Fair enough, if just making it &quot;work&quot; was co=
nsidered too risky.</div><div><br></div><div>It still bothers me that this =
does not include operator[], and I don&#39;t see why.=C2=A0</div></div></bl=
ockquote><div><br></div><div>I agree, it was a step in the right direction,=
 but nowhere near a large enough step. The c++ committee seem to me to be (=
in my view overly) terrified of breaking backward compatibility.</div><div>=
<br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p></p>

-- <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 <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_=
blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">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/9094cc47-cb95-4dd7-8de5-594ae5a84fdb%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/9094cc47-cb95-=
4dd7-8de5-594ae5a84fdb%40isocpp.org</a>.<br>
</blockquote></div></div>

<p></p>

-- <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 <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/CALvx3hYMUyoErGQjbtZr9QHaajYp275od%3D=
%3Dhw%3D79%2BRiHh59csg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoo=
ter">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CALvx3hYM=
UyoErGQjbtZr9QHaajYp275od%3D%3Dhw%3D79%2BRiHh59csg%40mail.gmail.com</a>.<br=
 />

--000000000000d900a8057648b297--

.