May be this is a stupid question and only a simple issue, but I fail compiling a relative simple code. What I try to do is to add/concatenate two polygons using boost::polygon (some pseudocode showing the relevant parts):
#include <boost/polygon/polygon.hpp>
boost::polygon::polygon_with_holes_data<int> baseData; // base data to work with
boost::polygon::polygon_with_holes_data<int> opData; // operational data to be applied to base
fill both baseData and opData via set() and set_holes() here...
boost::polygon::polygon_set_data<int> result=baseData + opData;
The last line is where I stumble upon: the compiler says the operator "+" is not known for polygon_with_holes_data:
error C2678: binary '+' : no operator found which takes a left-hand operand of type 'boost::polygon::polygon_with_holes_data<T>' (or there is no acceptable conversion)
When I use polygon_data instead of polygon_with_holes_data the same error appears. Any idea what I'm doing wrong?
Thanks!