How many options can I include in a bit mask?
<p>In <a href="http://stackoverflow.com/questions/13095354/32-bit-integer-mask">this question</a> it was pointed out that: </p>

<blockquote>
  <p>Using int [for bit mask] is asking for trouble</p>
</blockquote>

<p>I have been using an <code>unsigned char</code> to store bitmask flags, but it occurs to me that I will hit low limit since a char is only a byte, thus 8 bits, thus only 8 options in my mask?</p>

<pre><code>enum options{
 k1=1&lt;&lt;0,
 k2=1&lt;&lt;1,
  .... through to k8
 }

 unsigned char myOption=k2;
</code></pre>

<p>Do I simply need to make <code>myOption</code> an <code>int</code> or some other type for example if I wish it to store more than 8 possible options (and combinations of options, of course, hence why I am using the bit mask in the first place)? What's the best type?</p>
