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

C++ - Overloading < operator

Name: Saladin 2010-12-03 18:49

I am trying to overload operator < in a templated class. Here's the .h file:
http://pastie.org/private/ib0pxua2p5cnulvcggfpw

On line 25, i get error: Declaration of 'operator<' as non-function. Expected ';' before '<' token.

Can someone please explain to me why?
Thanks!

Name: Anonymous 2010-12-03 18:59

Because you are using C++.

Name: Anonymous 2010-12-03 19:00

Name: Saladin 2010-12-03 19:19

Method type signature? How is it wrong? plz explain

Name: Anonymous 2010-12-03 19:21

>>4

/prog/ isn't a place for beginner stuff like this, I suggest you seek out a more new beginner friendly place.

Name: Saladin 2010-12-03 19:24

Cmon dawg please help me out with this. Plz dawg. Pleaaaaaaaaseeeeeeeee? plzplzplz man its due in 30 minutes. plzzzzzzzzzzzzzz help HALP HALP HALP

Name: Anonymous 2010-12-03 19:51

>>6

The fact that you in one word bothered to type out all the letters required to form the word ``Please'' I have come to the conclusion that you attempted trick me and whoever isn't you on here to believing that you're OP.

Tell me, am I right?

Name: Anonymous 2010-12-03 20:20

>>7
You got me there, I'm afraid. I'm terribly sorry. It won't happen again, officer, I can assure you.

Name: Anonymous 2010-12-04 3:42

friend bool operator< <>(int n, const Hand<C>& hand );
IHBTCO?
I don't know what you tried to write here, but it makes no sense.

Name: Anonymous 2010-12-04 5:43

>>9
You can't be TCO in sepples.

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