Also note that I have included #include <string> and #include <iostream> in ItemType.h

October 3rd, 2012, 04:50 PM

GCDEF

Re: Error c2678

You didn't show the definition of the variable causing the error, channel.

October 4th, 2012, 02:48 AM

cilu

Re: Error c2678

If channel is not a built-in type (bool, char, int, double, etc.) not a library class (such as std::string) that has overloaded the operator >>, then you need to explicitly overload operator>> to be able to use it like you did.