classname::classname a type ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oliver S.

    classname::classname a type ?

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

    #2
    Re: classname::clas sname a type ?

    Oliver S. wrote:[color=blue]
    > There are compilers that allow sizeof(classnam e::classname) as a
    > synonym to sizeof(classnam e); has anyone found something about this
    > in the ISO-std ? I doubt that this is legal.[/color]

    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


    Comment

    Working...