E2557 Multi-character character constant not allowed (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index


char16_t and char32_t types do not allow character constant names that contain multiple characters. However, char and wchar_t types still allow multi-character character constants for backward compatibility.


Example:

 const static int      c1 =  'ab';  // Warning: W8098 Multi-character character constant
 const static char16_t c3 = u'ab';  // error: E2557 
 const static char32_t c4 = U'ab';  // error: E2557