This is the mail archive of the gcc@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: Size of basic types


On Thu, 02 Dec 2004 22:04:34 +0100 Jean-Eric Cuendet <jec@rptec.ch> wrote:

> So I changed OurInt to int instead of long. But then, I have problems 
> because we have overloaded methods with OurInt and OurBool, which were 
> different in 32bits mode (int and long) but are the same now in 64bits 
> (the 2 are int)...
> Any idea how to resolve that?

Make at least one of the types a true class with one data member (an int)
and a lot of operator functions. It's a lot of typing but otherwise
simple. And overloading on a true class works fine.

MSB

-- 
He who SHOUTS is always wrong.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]