This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
numeric_limits<char>::digits = 7 ?
- To: libstdc++ at gcc dot gnu dot org
- Subject: numeric_limits<char>::digits = 7 ?
- From: "R. Sinoradzki" <sinoradz at student dot uni-kl dot de>
- Date: Thu, 03 May 2001 16:14:11 +0200
Hi,
I want to use a bitset to store a double.
So I tried bitset< numeric_limits<char>::digits * sizeof(double) >.
Then I noticed, that numeric_limits<char>::digits is set to 7.
This is different from CHAR_BIT = 8 in <climits>.
What is the reason to use different values?
bye, Ralf
P.S:
machine is i686 Linux(debian)
gcc-3.0 from 2 days old CVS tree