Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dictionary.cpp: In function ‘int main(int, char**)’:
- Dictionary.cpp:85:44: error: no match for ‘operator=’ in ‘dictObject = dictionary.HashTable<HashedObj>::retrieve [with HashedObj = DictionaryEntry]((*(const DictionaryEntry*)(& userInput)))’
- Dictionary.cpp:85:44: note: candidate is:
- DictionaryEntry.h:13:7: note: DictionaryEntry& DictionaryEntry::operator=(const DictionaryEntry&)
- DictionaryEntry.h:13:7: note: no known conversion for argument 1 from ‘bool’ to ‘const DictionaryEntry&’
- In file included from Dictionary.cpp:8:0:
- HashedTable.h: In member function ‘bool HashTable<HashedObj>::insert(const HashedObj&) [with HashedObj = DictionaryEntry]’:
- Dictionary.cpp:51:26: instantiated from here
- HashedTable.h:51:3: error: no matching function for call to ‘List<DictionaryEntry>::find(const DictionaryEntry&)’
- HashedTable.h:51:3: note: candidates are:
- List.h:276:11: note: List<Object>::iterator List<Object>::find(Object&) [with Object = DictionaryEntry]
- List.h:276:11: note: no known conversion for argument 1 from ‘const DictionaryEntry’ to ‘DictionaryEntry&’
- List.h:295:17: note: List<Object>::const_iterator List<Object>::find(Object&) const [with Object = DictionaryEntry]
- List.h:295:17: note: no known conversion for argument 1 from ‘const DictionaryEntry’ to ‘DictionaryEntry&’
- HashedTable.h: In member function ‘bool HashTable<HashedObj>::retrieve(const HashedObj&) [with HashedObj = DictionaryEntry]’:
- Dictionary.cpp:85:44: instantiated from here
- HashedTable.h:71:29: error: no match for ‘operator*’ in ‘*((HashTable<DictionaryEntry>*)this)->HashTable<DictionaryEntry>::theLists.std::vector<_Tp, _Alloc>::operator[] [with _Tp = List<DictionaryEntry>, _Alloc = std::allocator<List<DictionaryEntry> >, std::vector<_Tp, _Alloc>::reference = List<DictionaryEntry>&, std::vector<_Tp, _Alloc>::size_type = unsigned int](((unsigned int)HashTable<HashedObj>::myhash [with HashedObj = DictionaryEntry]((* & x))))’
- HashedTable.h: In member function ‘int HashTable<HashedObj>::myhash(const HashedObj&) const [with HashedObj = DictionaryEntry]’:
- HashedTable.h:48:52: instantiated from ‘bool HashTable<HashedObj>::insert(const HashedObj&) [with HashedObj = DictionaryEntry]’
- Dictionary.cpp:51:26: instantiated from here
- HashedTable.h:153:23: error: no matching function for call to ‘HashTable<DictionaryEntry>::hash(const DictionaryEntry&) const’
- HashedTable.h:153:23: note: candidates are:
- HashedTable.h:165:7: note: int HashTable<HashedObj>::hash(const string&) [with HashedObj = DictionaryEntry, std::string = std::basic_string<char>]
- HashedTable.h:165:7: note: no known conversion for argument 1 from ‘const DictionaryEntry’ to ‘const string& {aka const std::basic_string<char>&}’
- HashedTable.h:166:7: note: int HashTable<HashedObj>::hash(int) [with HashedObj = DictionaryEntry]
- HashedTable.h:166:7: note: no known conversion for argument 1 from ‘const DictionaryEntry’ to ‘int’
- csuser@ubuntu12-04:~/Desktop$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement