ofPolyline no matching function error

Hey. I am trying to get one of my applications working on the new version of OpenFrameworks (0.11.2) as it was previously running on 0.9.8. I have run into this problem where I am using ofPolyline, however, when I go to make the application it throws an error saying no matching function call on line 627 (see below).


I have looked into the ofPolyline.h file and the function is there. Any help why this is happening would be appreciated. Also any other tips on moving a custom application to a newer version of OpenFrameworks would also be much appreciated. Thanks

could you try rewriting that line as something like this:

ofPolyline poly;
for (auto & pt : blobContour.pts){
    poly.addVertex(pt);
}

Awesome thanks that worked