Size of basic types
Matthias B.
msbREMOVE-THIS@winterdrache.de
Fri Dec 3 10:46:00 GMT 2004
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.
More information about the Gcc
mailing list