MathGeoLib icon indicating copy to clipboard operation
MathGeoLib copied to clipboard

struct hash_edge should be defined outside of OBB.cpp and Polyhedron.cpp

Open yosmo78 opened this issue 1 year ago • 0 comments

I have trying to compile the library in a header only style (I know it's unsupported but it is very close to one) and alongside https://github.com/juj/MathGeoLib/issues/76 in OBB.cpp and Polyhedron.cpp we define hash_edge in each which means in header only style would lead to a redefinition error. To make other modes of compilation styles possible to I would recommend we move hash_edge outside of the files to a header file.

yosmo78 avatar Jun 16 '24 06:06 yosmo78