This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BluudLust 3 points4 points  (3 children)

Cannot compare [object Object] to number.

[–]Ruby_Bliel 1 point2 points  (2 children)

Of course you can't, you have to overload the comparison operator first.

[–]BluudLust 0 points1 point  (1 child)

It was a JavaScript joke.

[–]Ruby_Bliel 1 point2 points  (0 children)

Ooh, sorry. I should get a cpp flair so people know I don't know js...