I am trying to do something like this:
for (std::streampos Position = 0; Position < 123; Position++) {
However, it seems that std::streampos does not have an overloaded operator++ .
Attempting to use Position = (Position + 1) results in the following error:
ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
Is there any workaround for this, or should I rely on a long unsigned int big enough for files?
Maxpm source share