P
Paul Eggert
CBFalconer said:It would be fairly easy to graft such a construct with:
enum subrangetype {MINVAL .. MAXVAL};
where MINVAL and MAXVAL are constant integral values.
Suppose you need an integer type "foo" that can represent MINVAL,
MAXVAL, and all values in between. Will the following type do?
typedef enum { foo_lo = MINVAL, foo_hi = MAXVAL } foo;