classname::classname a type ?

classname::classname a type ?

Post by Oliver S » Sat, 13 Sep 2003 04:26:40



There are compilers that allow sizeof(classname::classname) as a
synonym to sizeof(classname); has anyone found something about this
in the ISO-std ? I doubt that this is legal.
 
 
 

classname::classname a type ?

Post by White Wol » Sat, 13 Sep 2003 04:47:39


All I can imagine is the size of a function pointer of the constructor,
which would make sense here. But according to the standard the constructor
does not have a name and its address cannot be taken (I was told so)... so
it all makes no sense to me.

--
WW aka Attila