NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2166

l-value specifies const object

Code attempts to modify an item declared const. The following sample generates C2166:

void main() {
   int j = 0;
   const int i = 4;   // i is const
   j = i;   // ok
   i = 5;   // C2166
}