|   |
|
15:27 - operator overload
|
I am just putting this hint up here, because I did a google search for a solution and couldn't find an answer.
Hopefully anyone who makes this mistake in future and googles for an answer will find this page.
If you get an overloaded operator is ambiguous / ambiguity error when trying to compile some C++ code. Make sure you are including the .h files and not the source .cc or .cpp files because this will cause this error. It is a pretty silly mistake to make, but
one that is hard to diagnose.
|
|
|
Posted in category
|
Comments ()
|