The pointer is never dereferenced, it's just used as a key.  Ugly but works.