This is the line that causes the error:
sr.material_ptr = objects[j]->get_material_ptr();
The class this line is from includes both GeometricObject and and the class of which sr is an instance.
Last edited on
Could you show us the declaration/definition of objects?
Sure:
std::vector<GeometricObject*> objects;
This is in the same class that contains the erroneous line.
Last edited on
I don't see any problem here.
Try cleaning the solution and rebuilding.
Ok, I did a completely clean build, and the error remains. This is really weird:p
Rewrite appeared to be the only option, fixed now:)