Open GoogleCodeExporter opened 9 years ago
How to use LRUCache for hash_map<char*,int> ?
Problem is: then key is char* then LRUCache does not keep internally the key
value, only the pointer, as a result then original key is destroyed then the
hash_map key pointer is not valid anymore and the memory corruption happens.
Is it any way to update the current code to support std::unordered_map or boost
unordered_map ?
Original comment by mlubin...@gmail.com
on 29 Sep 2011 at 3:57
Original issue reported on code.google.com by
mlubin...@gmail.com
on 26 Sep 2011 at 11:27