When compiling a 3rd party library, I get "error: initial value of reference to non-const must be an lvalue". The error is occurring in a C++ Class definition in this declaration of a member function:
bool intersectsHierarchy(ON_Ray& ray, std::list<BVNode<ON_BoundingBox>*>& results = 0);
Based on information I found on the web, I tried to make the initialized parameter be const, as follows:
bool intersectsHierarchy(ON_Ray& ray, const std::list<BVNode<ON_BoundingBox>*>& results = 0);
But that just causes another compilation error.
Any ideas how to best fix this and get my library to compile?
remove the = 0
part -
const
value