I have the class Gateway. I need to store object of this class in a hash table (using tr1::unordered_set). I've used both the unorderd_set and the class Gateway in oder context and they work fine yet I can't figure how to pu a gateway in a unordered set cause I can't define its hash function in tr1's namespace.