Why are enums considered compound types?

Posted by FredOverflow on Stack Overflow See other posts from Stack Overflow or by FredOverflow
Published on 2010-05-26T22:55:14Z Indexed on 2010/05/26 23:01 UTC
Read the original article Hit count: 265

Filed under:
|
|

Arrays, functions, pointers, references, classes, unions, enumerations and pointers to members are compound types.

My understanding of a compound type is that is based on other type(s). For example, T[n], T* and T& are all based on T. Then what other type(s) is an enumeration based on?

Or if my understanding of compound types is incorrect, what exactly is it about a type that makes it a compound type? Is compound simply a synonym for user-defined?

© Stack Overflow or respective owner

Related posts about c++

Related posts about enums