Topic: Missing std::less<optional<T>> specialization when
Author: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Date: Sat, 29 Nov 2014 11:03:57 +0100
Raw View
This is a multi-part message in MIME format.
--------------070408010209060602080504
Content-Type: text/plain; charset=UTF-8; format=flowed
Hi,
With the current specification, optional<T> can not be stored on an
ordered container when T doesn't define the operator<(T,T), but
specializes std::less<T>.
I propose to add the specialization std::less<optional<T>> if
std::less<T> is specialized.
What do you think?
Vicente
--
---
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/.
--------------070408010209060602080504
Content-Type: text/html; charset=UTF-8
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="+1">Hi,<br>
<br>
With the current specification, optional<T> can not be
stored on an ordered container when T doesn't define the
operator<(T,T), but specializes std::less<T>.<br>
<br>
</font><font size="+1">I propose to add the specialization
std::less<optional<T>> if std::less<T> is
specialized.<br>
<br>
What do you think?<br>
<br>
</font>Vicente<br>
</body>
</html>
<p></p>
-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:std-proposals+unsubscribe@isocpp.org">std-proposals+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href="mailto:std-proposals@isocpp.org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href="http://groups.google.com/a/isocpp.org/group/std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/</a>.<br />
--------------070408010209060602080504--
.