I am receiving a compilation error which I am quite vexed about at this point for my polygon constructor(Refer below). I would appreciate if anyone could help me. Thank you.
Compilation error:
no matching function for call to ‘Object::PointType::PointType()’
Polygon::PointType* vertices = new Polygon::PointType[max_index];
This is an attempt to create an an array of Polygon::PointType objects.
Each of those will be created using the default constructor, which would be of form ‘PointType()’
But the default constructor for them does not exist (because you didn't provide one, and you don't get one for free because you did provide at least one other constructor).