From ee0203a34307f1a347f4bbe987bf609aeab208d5 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Sun, 10 May 2020 16:11:03 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20compilation=20error=20on=20Mac=20OS=C2=A0?= =?UTF-8?q?X?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/reactphysics3d/utils/DebugRenderer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/reactphysics3d/utils/DebugRenderer.h b/include/reactphysics3d/utils/DebugRenderer.h index 93f22b5c..8c1b90e3 100644 --- a/include/reactphysics3d/utils/DebugRenderer.h +++ b/include/reactphysics3d/utils/DebugRenderer.h @@ -328,4 +328,16 @@ inline void DebugRenderer::setContactNormalLength(decimal contactNormalLength) { } +// Hash function for a DebugItem +namespace std { + + template <> struct hash { + + size_t operator()(const reactphysics3d::DebugRenderer::DebugItem& debugItem) const { + + return std::hash{}(static_cast(debugItem)); + } + }; +} + #endif