Re: sizeof(bool)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Betu, Satyanarayana" <betus@xxxxxxxx> writes:

> we are using g++ 2.95.3 .Currently we are facing problems with data
> type bool.Programs compiling with this compiler are taking bool size
> as 4 because of which we are not able to prote this application to
> another machines.Do u have any patch for this problem?

The C++ standard allows bool to have size 4, so there is no problem in
g++; the problem is in your application.

However, you might consider upgrading to a current version of g++,
where the size of bool is 1 consistently over all architectures.

-- 
	Falk

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux