I have a program that retrieves the cursor position at the point where
the data began to be stored, this value is assigned to a
'std::streampos' data type called 'pos'. Later on in the program, 'pos'
is put in another file, but as an 'int' data type, as suggested by the
documentation. Having said that, here is my question: If the value of
'pos' exceeds INT_MAX, I will lose the ability to store that data in an
integral value; run time error kind of thing (at best!), I suspect.
This is most likely to happen since the file size will most definitely
grow to a size bigger than INT_MAX.

Can any pitch in a work around?


Thanks in advance.

_______________________________________________
Help-gplusplus mailing list
Help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to