RESOLVED FIXED 6222
HashMap does not work with const pointer keys or values
https://bugs.webkit.org/show_bug.cgi?id=6222
Summary HashMap does not work with const pointer keys or values
Maciej Stachowiak
Reported 2005-12-23 17:56:14 PST
HashMap does not work for const foo * keys and values because the pointer specialization fails to cast away const and so fails some implicit conversions.
Attachments
the fix (4.25 KB, patch)
2005-12-23 18:00 PST, Maciej Stachowiak
eric: review+
Maciej Stachowiak
Comment 1 2005-12-23 18:00:08 PST
Created attachment 5253 [details] the fix
Eric Seidel (no email)
Comment 2 2005-12-24 02:42:55 PST
Comment on attachment 5253 [details] the fix the KDE folks have been removing c-style casts from the kxmlcore code they imported from us. This just gives them more to remove. That said, this looks fine. r=me.
Maciej Stachowiak
Comment 3 2005-12-24 14:03:52 PST
I think if you're going to const_cast and reinterpret_cast both, then you may as well just use a C-style cast.
Note You need to log in before you can comment on or make changes to this bug.