After storing the cursor possition in a file, I try to read it back, std::ofstream >> std::streampos, but this statement gives me an error syaing:
file.cpp: In member function `virtual jme::MyClass& jme::MyClass::operator>>(std::streampos&)': file.cpp:1051: error: ambiguous overload for 'operator>>' in '(((jme::Stream*)this) + (*(int*)(((jme::MyClass*)this)->jme::MyClass::_vptr$MyClass + -0x000000010)))->jme::Stream::f >> data' I MUSTN'T cast std::streampos to 'int', since the size of std::streampos will be much grater than INT_MAX. What am I doing wrong? What can I do to make my program to work? TIA _______________________________________________ Help-gplusplus mailing list Help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus