------- Comment #1 from  2009-03-12 00:02 -------
Additionally, the requirements for user-defined hashing for structs and classes
are inconsistent.

First, struct requirements are listed as needing 2 members:
  const uint toHash()
  const int opCmp(Keytype*)

Later, struct requirements are given again, but this time:
  hash_t toHash()
  bool opEquals(S) or bool opEquals(S*)
  int opCmp(S) or int opCmp(S*)

Classes are supposed to match the 2nd set of functions.

Shouldn't these functions be const?  And S should be replaced by "Keytype" or
the text above should state that S is a Keytype.


Reply via email to