Closed GoogleCodeExporter closed 9 years ago
Those template error messages from gcc are pretty great, aren't they?
Try removing the 'const' from
dense_hash_map<const string, string, my_hash > months;
Original comment by csilv...@gmail.com
on 4 Jul 2010 at 7:48
Oh, these error messages are boring me to death……
By the way, I removed the 'const', but it still doesn't work.
Can you give me a simple example about the 'key_type=string'?
Thanks a lot :)
Original comment by cx3...@gmail.com
on 5 Jul 2010 at 12:59
Are you *sure* the code still fails to compile when the const is removed? It
fails for me with the const, but works fine with the const removed.
The problem is that set_deleted_key() tries to assign deleted_key to something
of type key_type. Obviously, you can't set anything to a const string, so the
compile complains.
Original comment by csilv...@gmail.com
on 6 Jul 2010 at 3:43
I haven't heard anything more, so I'm going to assume the problem here is with
the extraneous const in your key-type. I've committed a fix to that particular
problem, and it will be in the next sparsehash release.
Original comment by csilv...@gmail.com
on 29 Jul 2010 at 5:15
This should be fixed in sparsehash 1.8, just released.
Original comment by csilv...@gmail.com
on 29 Jul 2010 at 9:53
Original issue reported on code.google.com by
cx3...@gmail.com
on 4 Jul 2010 at 3:37