Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.97 KB | None | 0 0
  1. Dictionary.cpp: In function ‘int main(int, char**):
  2. Dictionary.cpp:85:44: error: no match for ‘operator=’ in ‘dictObject = dictionary.HashTable<HashedObj>::retrieve [with HashedObj = DictionaryEntry]((*(const DictionaryEntry*)(& userInput)))
  3. Dictionary.cpp:85:44: note: candidate is:
  4. DictionaryEntry.h:13:7: note: DictionaryEntry& DictionaryEntry::operator=(const DictionaryEntry&)
  5. DictionaryEntry.h:13:7: note:   no known conversion for argument 1 from ‘bool’ to ‘const DictionaryEntry&
  6. In file included from Dictionary.cpp:8:0:
  7. HashedTable.h: In member function ‘bool HashTable<HashedObj>::insert(const HashedObj&) [with HashedObj = DictionaryEntry]:
  8. Dictionary.cpp:51:26:   instantiated from here
  9. HashedTable.h:51:3: error: no matching function for call to ‘List<DictionaryEntry>::find(const DictionaryEntry&)
  10. HashedTable.h:51:3: note: candidates are:
  11. List.h:276:11: note: List<Object>::iterator List<Object>::find(Object&) [with Object = DictionaryEntry]
  12. List.h:276:11: note:   no known conversion for argument 1 from ‘const DictionaryEntry’ to ‘DictionaryEntry&
  13. List.h:295:17: note: List<Object>::const_iterator List<Object>::find(Object&) const [with Object = DictionaryEntry]
  14. List.h:295:17: note:   no known conversion for argument 1 from ‘const DictionaryEntry’ to ‘DictionaryEntry&
  15. HashedTable.h: In member function ‘bool HashTable<HashedObj>::retrieve(const HashedObj&) [with HashedObj = DictionaryEntry]:
  16. Dictionary.cpp:85:44:   instantiated from here
  17. 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))))
  18. HashedTable.h: In member function ‘int HashTable<HashedObj>::myhash(const HashedObj&) const [with HashedObj = DictionaryEntry]:
  19. HashedTable.h:48:52:   instantiated from ‘bool HashTable<HashedObj>::insert(const HashedObj&) [with HashedObj = DictionaryEntry]
  20. Dictionary.cpp:51:26:   instantiated from here
  21. HashedTable.h:153:23: error: no matching function for call to ‘HashTable<DictionaryEntry>::hash(const DictionaryEntry&) const
  22. HashedTable.h:153:23: note: candidates are:
  23. HashedTable.h:165:7: note: int HashTable<HashedObj>::hash(const string&) [with HashedObj = DictionaryEntry, std::string = std::basic_string<char>]
  24. HashedTable.h:165:7: note:   no known conversion for argument 1 from ‘const DictionaryEntry’ to ‘const string& {aka const std::basic_string<char>&}
  25. HashedTable.h:166:7: note: int HashTable<HashedObj>::hash(int) [with HashedObj = DictionaryEntry]
  26. HashedTable.h:166:7: note:   no known conversion for argument 1 from ‘const DictionaryEntry’ to ‘int
  27. csuser@ubuntu12-04:~/Desktop$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement