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 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?

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