Follow Us
Contribute
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.

Categories

0 votes

A const variable cannot be changed after it is declared and initialized. Ex:

// compile with: /clr
ref struct Y1 {
   static const int staticConst = 9;
};

int main() {
   Y1::staticConst = 0;   // C3892
}

requested by (170k points)
edited by

Please log in or register to to add a solution for this error.

...