I am working in Eclipse, and it keeps giving me this error that I do not understand. In the fillTable function, "is >> kP[i]" Eclipse says: no match for 'operator>>' in 'is >> *(((TranslationTable<int, std::string>*)this)->TranslationTable<int, std::string>::kP + (+(((unsigned int)i) * 8u)))'. And I have no idea what I am doing wrong and what that means. Any suggestions? Thank you.
Probably not, because I don't know what you mean? Why would >> not work in this scenario when I want to place the white-space delimited words into the array?
kP is a pointer to KeyValuePair<Key,Value>, so when you reference it with kP[i] and then use >> on it, you are using operator>> with std::istream and KeyValuePair<Key,Value>. Unless you provide a definition of operator>> that works with std::istream and KeyValuePair<Key,Value>, the compiler can't possibly guess what you want.