Get number of bits in char
<p>How do I get the number of bits in type <code>char</code>?</p>

<p>I know about <code>CHAR_BIT</code> from <code>climits</code>. This is described as »The macro yields the maximum value for the number of bits used to represent an object of type char.« at <a href="http://www.dinkumware.com/manuals/?manual=compleat&amp;page=limits.html#CHAR_BIT" rel="nofollow">Dikumware's C Reference</a>. I understand that means the number of bits in a <code>char</code>, doesn't it?</p>

<p>Can I get the same result with <code>std::numeric_limits</code> somehow? <code>std::numeric_limits&lt;char&gt;::digits</code> returns <code>7</code> correctly but unfortunately, because this value respects the signedness of the 8-bit char here…</p>
