In other words, how do I ensure that
1 << n does not overflow for
n < 256?
At present, I am using
uint256(1) << n.
Is there a better way, or is it guaranteed that the expression
uint256(1) is replaced with a constant value during compilation (and not computed during runtime)?