Non-incrementable iterator in MultiShape
Closed this issue · 0 comments
danielsefton commented
Arithmetic on a pointer to an incomplete type 'const Procedural::Shape'
Attempted to increment a non-incrementable iterator
forward declaration of 'Procedural::Shape'
ProceduralMultiShape.h
void addMultiShape(const MultiShape& other)
{
for (std::vector<Shape>::const_iterator it = other.mShapes.begin(); it!=other.mShapes.end(); ++it)
{
mShapes.push_back(*it);
}
}
I built the library with C++11.
I moved the function implementation to the cpp file to fix this.