This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Compiler Error C2268
'operation' : different const or volatile qualifiers
An operation is performed on a variable defined as const or volatile. The const or volatile item cannot be modified.
Possible cause
- A pointer to an item declared const or volatile is assigned to a pointer not declared as pointing to const or volatile.
Example
const char *p = "abcde";
int str( char *s );
str( p ); // error