News for hackers. Stuff that matters.
Re:Writing Complex Macros in Rust: Reverse Polish Notation by earenndil on Thursday February 01, 2018 @02:29PM (#16285008)
> C++ doesn't check that the key type for an hashmap is hashable

I thought it was possible to do something like this? (disclaimer: I don't use c++)

class Hashable { abstract char *hash() = 0; } template<typename T: Hashable, typename U> class Hashmap { vector<U> buckets; // etc. }

There are no comments on this comment yet.