[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Create a logical array of 0
From: |
Josep Monés i Teixidor |
Subject: |
Re: Create a logical array of 0 |
Date: |
Sun, 05 Sep 2004 20:10:05 +0200 |
On dg, 2004-09-05 at 19:16, David Bateman wrote:
> Is "bool" equivalent to unsigned char on all platforms? I worked
> with a fortran compiler on a convex I believe about 10 yrs ago
> where the logical type was 4 bytes long... Is the type of "bool"
> mandated in the C++ standard?
>
No, The standard says that bool is required to convert to integral types
using 1 for true and false to 0, but sizeof(bool) doesn't need to be 1,
the standard says it's "implementation-defined".
--
Josep Monés i Teixidor
Clau GnuPG: gpg --recv-keys 80E85CC4
signature.asc
Description: This is a digitally signed message part
- Re: Create a logical array of 0, (continued)
Re: Create a logical array of 0, Josep Monés i Teixidor, 2004/09/03
Re: Create a logical array of 0, John W. Eaton, 2004/09/03
- Re: Create a logical array of 0, David Bateman, 2004/09/03
- Re: Create a logical array of 0, John W. Eaton, 2004/09/03
- Re: Create a logical array of 0, David Bateman, 2004/09/05
- Re: Create a logical array of 0,
Josep Monés i Teixidor <=
- Re: Create a logical array of 0, David Bateman, 2004/09/05
- Re: Create a logical array of 0, John W. Eaton, 2004/09/05