classname::classname a type ?

Discussion in 'C++' started by Oliver S., Sep 11, 2003.

  1. Oliver S.

    Oliver S. Guest

    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.
    Oliver S., Sep 11, 2003
    #1
    1. Advertising

  2. Oliver S.

    White Wolf Guest

    Oliver S. wrote:
    > 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.


    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
    White Wolf, Sep 11, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles A. Lackman

    className Attribute (UserControls)

    Charles A. Lackman, Jul 8, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    403
    Charles A. Lackman
    Jul 8, 2003
  2. noname

    global.asax classname

    noname, Jul 16, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    357
    Graham
    Jul 16, 2003
  3. Andy Sutorius

    could not load type "namespace.classname"

    Andy Sutorius, Feb 15, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,630
  4. Hongzheng Wang
    Replies:
    32
    Views:
    853
  5. Ante Perkovic

    CSS: "tagname.classname" or ".classname"

    Ante Perkovic, Dec 22, 2003, in forum: Javascript
    Replies:
    2
    Views:
    95
Loading...

Share This Page