Yeah, me yet again. I tried to avoid bugging you guys, but I've hit a problem that's so puzzlingly nonsensical that I can't even begin to figure out what's going on.
Here's the relevant parts of the code:
When I compile the code, it tells me that ">>" cannot take an integer as a right-hand value. That's absolute confusing rubbish! Please help.Code:class ffbyte { unsigned char value_; public: <stuff> friend istream& operator >> (istream& is, const ffbyte& f); // make it naitively input to cin }; istream& operator >> (istream& is, const ffbyte& f) { is >> int(f.value_); // error happens here return is; };



LinkBack URL
About LinkBacks


