Only those escape sequences that are defined in ISO/IEC 14882:2003 shall be used
Only those escape sequences that are defined in ISO/IEC 14882:2003 shall be used.
Escape sequences are certain special characters represented in string and
character literals. They are written with a backslash (\)
followed by a character.
The C++ Standard (ISO/IEC 14882:2003, Sec. 2.13.2) defines a list of escape sequences. See Escape Sequences. Use of escape sequences (backslash followed by character) outside that list leads to undefined behavior.
Only those escape sequences that are defined in ISO/IEC 14882:2003 shall be used.
\ is not an ISO/IEC escape
sequence.char
If you expect a rule violation but do not see it, refer to Coding Standard Violations Not Displayed.
| Group: Lexical Conventions |
| Category: Required |