I will post the relevant code shortly, but I need more explanation of what decrement of read only location. location of what and how it has been decremented.
The "const" at the end of your first error line is your problem. The member function is declared constant so it won't allow you to make any changes to variables in the function.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.