This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sizeof(bool)


"Betu, Satyanarayana" <betus@visa.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]