On Fri, 2010-06-25 at 10:03 +0200, Michael Stahl wrote:
On 25/06/2010 08:53, Stephan Bergmann wrote:
> > On 06/24/10 22:51, Terrence Enger wrote:
> >> This is about a sal_Bool rather than a bool, but I shall raise
> >> the question anyway.
> >>
> >> It just happens that I was running OO under gdb,
On 25/06/2010 08:53, Stephan Bergmann wrote:
> On 06/24/10 22:51, Terrence Enger wrote:
>> This is about a sal_Bool rather than a bool, but I shall raise
>> the question anyway.
>>
>> It just happens that I was running OO under gdb, and the
>> following output had already caught my attention.
>>
>>
Hi
Here is an excerpt from the C++ standard about the size of fundamental types
(clause 5.3.3) :
sizeof(char), sizeof(signed char) and sizeof(unsigned char) are 1; the result
of sizeof applied to any other fundamental type (3.9.1) is
implementation-defined. [Note: in particular, sizeof(bool)
On 06/24/10 14:24, Rene Engelhard wrote:
On Thu, Jun 24, 2010 at 02:15:29PM +0200, Michael Stahl wrote:
isn't bool ususally (or at least sometimes) 4 bytes in size?
$ cat test.cxx
#include
int main() {
printf("%d\n", sizeof(bool));
}
$ g++ -o lala ./test.cxx
$ ./lala
1
sizeof(bool)
Hi,
On Thu, Jun 24, 2010 at 02:15:29PM +0200, Michael Stahl wrote:
> isn't bool ususally (or at least sometimes) 4 bytes in size?
$ cat test.cxx
#include
int main() {
printf("%d\n", sizeof(bool));
}
$ g++ -o lala ./test.cxx
$ ./lala
1
Grüße/Regards,
René
-
On 24/06/2010 13:52, Stephan Bergmann wrote:
> On 06/24/10 12:42, Niklas Nebel wrote:
>> On 06/24/10 12:29, Mathias Bauer wrote:
>>> The idea is so good that someone is already working on it. :-)
>>> There is ongoing work to replace a lot of ancient types like BOOL,
>>> USHORT etc. by sal_... type