Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Bestest Sepples Program Evar

Name: Anonymous 2010-07-27 22:39

I have maded the bestest sepples program ever.  Please compile and run to tell having of results.


template<class T> struct L { L<T*> operator->(); };
int main(int argc, char *argv[])
{
    L<int> i, j = i->yes;
    return 0;
}

Name: Anonymous 2010-07-28 3:38

I'm not ever going to care enough to compile this, but wouldn't the program have two errors?

The body of L.operator->() is not defined, and "yes" is not defined.  Also, a warning that "j" is declared and never used.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List