Fix compilation error on Mac OS X

This commit is contained in:
Daniel Chappuis 2020-05-10 16:11:03 +02:00
parent fe3d79b32d
commit ee0203a343

View File

@ -328,4 +328,16 @@ inline void DebugRenderer::setContactNormalLength(decimal contactNormalLength) {
}
// Hash function for a DebugItem
namespace std {
template <> struct hash<reactphysics3d::DebugRenderer::DebugItem> {
size_t operator()(const reactphysics3d::DebugRenderer::DebugItem& debugItem) const {
return std::hash<reactphysics3d::uint32>{}(static_cast<uint>(debugItem));
}
};
}
#endif