When the value assigned to an enumerator falls outside the range an signed integer (int) you'll have to specify a different base-type.
This won't compile:
This will:Code:enum Range { A = 3000000000 };
- petterCode:enum Range : long { A = 3000000000 };




Reply With Quote