Re: no matching function for call to 'qHash(const PB::phonebook&)' error
From the docs:
For a key type K, the qHash function must have one of these signatures:
uint qHash(K key);
uint qHash(const K &key);
uint qHash(K key, uint seed);
uint qHash(const K &key, uint seed);
Your qHash() function does not match any of these signatures. Read the compiler's error message and compare it to what your code says.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks