220 4269 <CAOHCbiv772meaadGAWS1uZB8A0jrk7eDjN+JHAAh-aw=8L654g@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Fixing Standard Library relational operators (was:
 Re: optional Rev.4 (N3672): What was the rationale to remove
 !=, >=, ...)
Date: Fri, 3 May 2013 21:17:36 -0400
Lines: 99
Approved: news@gmane.org
Message-ID: <CAOHCbiv772meaadGAWS1uZB8A0jrk7eDjN+JHAAh-aw=8L654g@mail.gmail.com>
References: <CAGg_6+NTws7QyEAsEUd308yx4LncpD_r6x4yJEJy5RN2w6v2Hw@mail.gmail.com>
	<CAPXezF9duRWCYnWr2DqfFjim6w2MPc3TMQOR+pJ4tryUnAeOtQ@mail.gmail.com>
	<CAPXezF8G-553darW6YfNKCnWQH0+TNeMAep-X3ozTY1=PXqsag@mail.gmail.com>
	<5f236e41-0f5f-4288-a80f-9eadb5168c38@isocpp.org>
	<CAFk2RUZT93__SiUdvD+=x+Z5MiCWGFUaiinsMHE+z515YndmEA@mail.gmail.com>
	<47de7d1c-0f32-43f6-9e26-952b87b44dc1@isocpp.org>
	<CAFk2RUZ39_NMZi7ACoahQVV70ggGLLkLUtGvnVTuXR9JakxT7A@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e013d17009bf0e404dbda3bff
X-Trace: ger.gmane.org 1367630264 19922 80.91.229.3 (4 May 2013 01:17:44 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 4 May 2013 01:17:44 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCUZ5QWKNQILJQ4RRQCRUBB6ZFWSC@isocpp.org Sat May 04 03:17:43 2013
Return-path: <std-proposals+bncBCUZ5QWKNQILJQ4RRQCRUBB6ZFWSC@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-bk0-f69.google.com ([209.85.214.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUZ5QWKNQILJQ4RRQCRUBB6ZFWSC@isocpp.org>)
	id 1UYR6b-0005jm-S0
	for gclcip-std-proposals@m.gmane.org; Sat, 04 May 2013 03:17:41 +0200
Original-Received: by mail-bk0-f69.google.com with SMTP id jm19sf2991084bkc.4
        for <gclcip-std-proposals@m.gmane.org>; Fri, 03 May 2013 18:17:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere:x-received:received-spf:mime-version
         :x-received:in-reply-to:references:date:message-id:subject:from:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-google-group-id:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=FOs8btvDJxgkU1wAo3f+wmyfxSgx7wRAmN54G9RNABA=;
        b=Ewsv+g0UbIWiVTlceNHU2h90I0is6ImH7g3TwgYrlttQwnOgvEem7KNRbpSJRlkREn
         mygUYvZbjsdTUAq8Jx5kXi7Yc4GFh5BaryQcgnHic00g6+Xl52w0b+EEj6ezYtWjTVXb
         zhUtNDWxaGhIpZ25+dwP6pA7vL6ljciYoCHThN16kA4FmULRVcB/uI44MTo8waSdwOWn
         CaqqubDDOHzc8YAkSEyITnOE9ei9/YV/yBddsy1YWBTjOrVJEH3S0uJm5Ht3HRktkAq4
         BYf++ePTuGH+xUu89CXuftEXRuXzGeppnMnwFCEF+IoOkU7eu8TENwQLvlf4QPRV05Ed
  
X-Received: by 10.152.28.202 with SMTP id d10mr13495821lah.3.1367630261078;
        Fri, 03 May 2013 18:17:41 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.26.35 with SMTP id i3ls13586lag.65.gmail; Fri, 03 May 2013
 18:17:36 -0700 (PDT)
X-Received: by 10.112.180.193 with SMTP id dq1mr5055690lbc.60.1367630256480;
        Fri, 03 May 2013 18:17:36 -0700 (PDT)
Original-Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180])
        by mx.google.com with ESMTPS id pg5si2781261lbb.214.2013.05.03.18.17.36
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 03 May 2013 18:17:36 -0700 (PDT)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180;
Original-Received: by mail-lb0-f180.google.com with SMTP id v1so2004217lbd.25
        for <std-proposals@isocpp.org>; Fri, 03 May 2013 18:17:36 -0700 (PDT)
X-Received: by 10.152.21.106 with SMTP id u10mr4946872lae.11.1367630256270;
 Fri, 03 May 2013 18:17:36 -0700 (PDT)
Original-Received: by 10.112.2.167 with HTTP; Fri, 3 May 2013 18:17:36 -0700 (PDT)
In-Reply-To: <CAFk2RUZ39_NMZi7ACoahQVV70ggGLLkLUtGvnVTuXR9JakxT7A@mail.gmail.com>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of tvaneerd@gmail.com designates 209.85.217.180 as permitted sender)
 smtp.mail=tvaneerd@gmail.com;       dkim=pass header.i=@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:4269
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4269>

--089e013d17009bf0e404dbda3bff
Content-Type: text/plain; charset=ISO-8859-1

On Fri, May 3, 2013 at 7:52 PM, Ville Voutilainen <
ville.voutilainen@gmail.com> wrote:

>
>
>
> On 4 May 2013 01:09, Marc <marc.glisse@gmail.com> wrote:
>
>>
>> But mostly, the rational for providing operator< seems to be so we can
>> put it in an std::set, but that's already handled by specializing std::less
>> (which I agree should have had a better name), so in my opinion
>> std::optional should simply not provide operator< at all. That seems the
>> safest thing.
>>
>> --
>>
>>
> I have no trouble with the name of std::less. What I wrote before was that
> I'd prefer not using std::less for
> ordering keys of associative container. ;)
>
>
That I agree with.  I always felt map should use something like
std::map_less<T>, for example.  Which would default to std::less<T>.
 (Possibly via std::container_less<T> in the middle as well?)

I actually don't think that would be a breaking change.

Tony

-- 

--- 
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.



--089e013d17009bf0e404dbda3bff
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">On Fri, May 3, 2013 at 7:52 PM, Ville Voutilainen <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:ville.voutilainen@gmail.com" target=3D"_blank">ville=
..voutilainen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><br><div class=3D"gmail_ext=
ra"><br><br><div class=3D"gmail_quote"><div class=3D"im">On 4 May 2013 01:0=
9, Marc <span dir=3D"ltr">&lt;<a href=3D"mailto:marc.glisse@gmail.com" targ=
et=3D"_blank">marc.glisse@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div><br>But mostly, the rational for provid=
ing operator&lt; seems to be so we can put it in an std::set, but that&#39;=
s already handled by specializing std::less (which I agree should have had =
a better name), so in my opinion std::optional should simply not provide op=
erator&lt; at all. That seems the safest thing.<br>

</div><div><div>

<p></p>

--<br><br></div></div></blockquote><div><br></div></div><div>I have no trou=
ble with the name of std::less. What I wrote before was that I&#39;d prefer=
 not using std::less for<br></div><div>ordering keys of associative contain=
er. ;) <br>

</div></div><br></div></div></blockquote><div><br></div><div>That I agree w=
ith. =A0I always felt map should use something like std::map_less&lt;T&gt;,=
 for example. =A0Which would default to std::less&lt;T&gt;. =A0(Possibly vi=
a std::container_less&lt;T&gt; in the middle as well?)</div>
<div>=A0</div><div>I actually don&#39;t think that would be a breaking chan=
ge.</div><div><br></div><div>Tony</div><div><br></div></div></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/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

--089e013d17009bf0e404dbda3bff--

.
