Prova mettere un typename
codice:template<typename Z, class T> T getEntryFromHashMap (Z id, __gnu_cxx::hash_map<Z, T>* hashMap) { // Search the entry in the hashMap if (hashMap) { typename __gnu_cxx::hash_map<Z, T>::iterator hashMapIterator; hashMapIterator = hashMap->find (id); if (hashMapIterator != hashMap->end()) { // Found it return hashMapIterator->second; } } return NULL; };

Rispondi quotando