OGRECave / ogre-procedural

procedural geometry for Ogre3D
https://ogrecave.github.io/ogre-procedural/
MIT License
40 stars 17 forks source link

Non-incrementable iterator in MultiShape #163

Closed danielsefton closed 1 year ago

danielsefton commented 1 year ago

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.