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

Pages: 1-

What's wrong with this?

Name: Anonymous 2009-07-07 0:03

Why won't this compile?

template<class T>
struct Party {
    Party<T*> operator->();
};

int main(int argc, char* argv[])
{
    Party<int> i, j = i->hard;
    return 0;
}

Name: Anonymous 2009-07-07 0:19

The problem is you're using C++.

Name: Anonymous 2009-07-07 0:22

Name: Anonymous 2009-07-07 0:40

>>2
Yea so what?

Name: Anonymous 2009-07-07 1:06

Unreadable and shitty code that's why FUCK YOU FUCK YOU

Name: Anonymous 2009-07-07 1:22

You didn't give an implementation for operator->

Party<int> i, j = i->hard; what the fuck is this shit

Also fuck you.

Name: Anonymous 2009-07-07 1:23

It wont compile because C++ is an interpreted language

Name: Anonymous 2009-07-07 1:54

>>3
I don't get the point of this post.

Name: Anonymous 2009-07-07 2:04

>>8
I don't get the point of /prog/

Name: Anonymous 2009-07-07 2:09

No [code] tags. Also, back to /b/, please

Name: Anonymous 2009-08-16 17:26


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