From 25e36ab269096f11ebb2a1c9f6cc3ab93f830b44 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 23 Feb 2023 14:08:27 +0100 Subject: a --- editor/inspect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/inspect.cpp') diff --git a/editor/inspect.cpp b/editor/inspect.cpp index 52d3bc12..48e4c708 100644 --- a/editor/inspect.cpp +++ b/editor/inspect.cpp @@ -41,7 +41,7 @@ using namespace imgui; using namespace entities; template requires std::is_integral_v constexpr bool eqv(T a, T b) { return a == b; } -constexpr bool eqv(float a, float b) { return std::fabs(a - b) < 1e-8f; } +inline bool eqv(float a, float b) { return std::fabs(a - b) < 1e-8f; } template constexpr bool eqv(const Math::Vector& a, const Math::Vector& b) { return a == b; } template void do_inspect_field(void* datum, const erased_accessor& accessor, field_repr repr) -- cgit v1.2.3