I'm currently working on implementing a small game in C++, but when trying to compile, I get this error:
..quadtree.h:125: error: no matching function for call to 'Fleet::Ship::overlaps(const Fleet::Ship*&)'
..ship.h:40: note: candidates are: bool Ship::overlaps(const Rectangle&) const
..ship.h:85: note: bool Ship::overlaps(const Ship&) const
..ship.h:32: note: bool Ship::overlaps(const Point&) const
So I think I now have Ship*&, which should actually be Ship&.
Is there any way to convert Ship*& to Ship&?
Thanks