-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b12
String literal to non-const pointer conversion, when used incorrectly, may result in runtime errors. Using Zc:strictStrings forces users to either use const pointers, or use explicit conversion, which is easier to spot and review.
GCC and Clang already warn on this conversion in all C++ code.
GCC and Clang already warn on this conversion in all C++ code.
- relates to
-
JDK-8281440 AWT: Conversion from string literal loses const qualifier
- Resolved
-
JDK-8281523 Accessibility: Conversion from string literal loses const qualifier
- Resolved