Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 6.9.2: Unclear interpretation about "char"
#1
Hi,

Rule 6.9.2 says it applies to "integral types constructed using the keywords char, ...". 
But it also says "it does not apply to the use of plain char".

This is confusing - is "char" allowed or not? Can you provide an example that shows where "char" is allowed and where it's not? I cannot find any in the rule explanation.

Thanks!
Reply
#2
I read now that "standard signed integer types" and "standard unsigned integer types" are defined as "signed char" and "unsigned char" respectively, so plain "char" is out of scope (and allowed). So the rule is clear now, this topic can be closed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)