Operator overload location

I'm going to overload some operators to work on my class objects. Do I prototype them in the same header file my class is in and define them in the corresponding .cpp file?
Yes, but of course if your class was a template (or the operator functions were templates) they would have to be defined in the header with no CPP file.
Topic archived. No new replies allowed.