C1832: Const object cannot get incremented

[ERROR]

Description

Constant objects can not be changed.

Example
  int* const pi;

  
  void main(void) {

  
    *pi++;

  
  }

  
Tips

Either do not declare the object as constant or use a different constant for the new value. In the case above, use parenthesis to increment the value pi points to and to not increment pi itself.

  int* const pi;

  
  void main(void) {

  
    (*pi)++;

  
  }