### no_conststringconv

Disables the deprecated implicit const string literal conversion (ISO C++, §4.2).

##### Syntax

#pragma no_conststringconv on | off | reset

##### Targets

All platforms.

##### Remarks

When enabled, the compiler generates an error when it encounters an implicit const string conversion. See example in Listing 10.27.

#### Listing 10.27 Example of const string conversion

#pragma no_conststringconv on
char *cp = "Hello World"; // generates error: illegal
// implicit conversion from
// ’const char[12]’ to ’char *’

This pragma does not correspond to any panel setting. To check this setting, use __option (no_conststringconv), described in Checking Settings. The default setting is off.