Remove the template.
//template <class keyType, class valueType> using keyType = int; using valueType = int; void Map<keyType, valueType>::remove (keyType key) { cout<<"hello" // E0065 }
Then add the template back just before you start using it.