Patch by kaliber to fix some compiling errors with clang. Removed the #include <iostream> part, but otherwise not modified.
See http://clang.llvm.org/compatibility.html#c++ why it is needed. Note that HashMap.h Key and Value are typenames as well. Afaict this is correctly done, builds and runs on gcc4. This fixes #5892. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37550 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -458,7 +458,7 @@ HashMap<Key, Value>::GetIterator() const
|
||||
|
||||
// _FindElement
|
||||
template<typename Key, typename Value>
|
||||
struct HashMap<Key, Value>::Element *
|
||||
typename HashMap<Key, Value>::Element *
|
||||
HashMap<Key, Value>::_FindElement(const Key& key) const
|
||||
{
|
||||
Element* element = fTable.FindFirst(key.GetHashCode());
|
||||
|
||||
Reference in New Issue
Block a user