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.
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.