
2 Sep
2009
2 Sep
'09
8:09 a.m.
2009/9/1 Joaquin M Lopez Munoz
Dominique Devienne
writes: Any reason why unordered cannot allow similar "compatible key" lookups?
There is no technical reason why Boost.Unordered couldn't provide the compatible key functionality. It just happens not to be a feature condidered in the standard, but if you convince the author to add it as an extension implementing it should be trivial.
AFAICT if the hash function doesn't support the type that you supply it will implicitly construct a key for every call to the hash function and equality predicate. Which is a problem. Daniel