
On November 27, 2014 9:14:37 AM EST, David Stone <david@doublewise.net> wrote:
On Wed, Nov 26, 2014 at 4:49 PM, Gavin Lambert <gavinl@compacsort.com> wrote:
But why do you want to have optional keys anyway? When does it make sense to have a single value attached to an empty key? It's rare for a dictionary type to permit null keys in any language.
I think this is a good point. Has anyone reading this list every actually used std::map<boost::optional<T>, U>?
I haven't, but I think the better question to ask is for legitimate use cases for that operator. Given such use cases, one can judge whether they warrant retention of the operator. If none are produced, removing the operator is far easier to justify. ___ Rob (Sent from my portable computation engine)