May 12, 2011 at 5:47pm
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 May 12, 2011 at 5:49pm
May 12, 2011 at 5:56pm
Could you show us the declaration/definition of objects?
May 12, 2011 at 5:57pm
Sure:
std::vector<GeometricObject*> objects;
This is in the same class that contains the erroneous line.
Last edited on May 12, 2011 at 5:59pm
May 12, 2011 at 6:10pm
I don't see any problem here.
Try cleaning the solution and rebuilding.
May 12, 2011 at 6:16pm
Ok, I did a completely clean build, and the error remains. This is really weird:p
May 12, 2011 at 7:14pm
Rewrite appeared to be the only option, fixed now:)