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

Operator Overloading

Name: Anonymous 2011-10-05 16:54

So I'm new to c++ and operator overloading. I have the following:

myClass operator*(const myClass &left, const myClass &right)
{
}

But it gives me the error: "... must take either zero or one argument."

What's wrong?

Name: Anonymous 2011-10-05 19:42

Operator overloading is generally a pretty bad idea anyway.

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