g++ linker can't find const member function
- by Max
I have a Point class (with integer members x and y) that has a member function withinBounds that is declared like so:
bool withinBounds(const Point&, const Point&) const;
and defined like this:
bool Point::withinBounds(const Point& TL, const Point& BR) const
{
if(x < TL.getX()) return false;
if(x > BR.getX()) return…