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

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