G
Gonçalo Rodrigues
Hi all,
Is it true that all pointer types that can be cast into void* (that
is, all pointer types with the exception of pointers to functions and
pointers to members) have the same size? And if not, do you know of
any examples of platform (OS + compiler) where such happens?
And does standard C++ guarantee the existence of a primitive (signed)
integer type T such that
sizeof(T) == sizeof(void*)
Even assuming the answer to the precedent question is negative (as I
suspect it is), suppose that in a given platform such an integer
primitive type T exists. Does anybody know of a way to single out such
a type, via some template or whatever?
TIA, with my best regards,
G. Rodrigues
Is it true that all pointer types that can be cast into void* (that
is, all pointer types with the exception of pointers to functions and
pointers to members) have the same size? And if not, do you know of
any examples of platform (OS + compiler) where such happens?
And does standard C++ guarantee the existence of a primitive (signed)
integer type T such that
sizeof(T) == sizeof(void*)
Even assuming the answer to the precedent question is negative (as I
suspect it is), suppose that in a given platform such an integer
primitive type T exists. Does anybody know of a way to single out such
a type, via some template or whatever?
TIA, with my best regards,
G. Rodrigues