[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-cxx-dev
Subject: RE: CXX-DEV: Type overloading and duplicate functions....
From: "Anuj Goyal" <Anuj.Goyal () Siebel ! com>
Date: 2004-10-10 20:54:17
Message-ID: 35E814F6D022FD44B1DBB75CB1A3DD4B086BA341 () SDCEXMB01 ! corp ! siebel ! com
[Download RAW message or body]
Thanks Eric,
Thanks Eric, apparently Solaris and Linux do it different which was
causing some compile time issues for me.
-----Original Message-----
From: Eric Gouriou [mailto:eric.gouriou@hp.com]
Sent: Saturday, October 09, 2004 5:02 PM
To: Anuj Goyal
Cc: cxx-dev@cxx.cup.hp.com
Subject: Re: CXX-DEV: Type overloading and duplicate functions....
Anuj Goyal wrote:
> I am curious why this piece of code compiles and runs on AIX, HPUX
but
> fails to compile on SOLARIS, LINUX.
[...]
> does HPUX consider size_t to be a different builtin type than
uint32_t
> ? I thought both would be mapped to unsigned long ???
They aren't.
From sys/_inttypes.h:
--------
typedef unsigned __int32 uint32_t;
typedef __int32 int32_t;
--------
From sys/types.h:
-------
types.h:303: typedef unsigned long size_t;
-------
Apparently __int32 and 'long' are not considered as the same type for
overloading purposes.
The same thing would hold for __int64_t / long in 64bit ABIs.
Eric
--
Eric Gouriou eric.gouriou@hp.com
-----------------------------------------------------------------------------
-
This e-mail message is for the sole use of the intended recipient(s) and
contains confidential and/or privileged information belonging to Siebel
Systems, Inc. or its customers or partners. Any unauthorized review, use,
copying, disclosure or distribution of this message is strictly prohibited.
If you are not an intended recipient of this message, please contact the
sender by reply e-mail and destroy all soft and hard copies of the message and
any attachments. Thank you for your cooperation.
====================================================
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE cxx-dev
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic