From 6598cf2449949b1192cd8001dee7c661d03a0142 Mon Sep 17 00:00:00 2001 From: Matteo Durante Date: Sun, 30 Jun 2024 20:39:42 +0200 Subject: [PATCH] Fix build errors --- src/em/Parser.cpp | 1 + src/em/values/sets/MaterialSetValue.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/em/Parser.cpp b/src/em/Parser.cpp index 2bd1a46..df45c30 100644 --- a/src/em/Parser.cpp +++ b/src/em/Parser.cpp @@ -1,5 +1,6 @@ #include "Parser.h" +#include #include #include "ast/Program.h" diff --git a/src/em/values/sets/MaterialSetValue.h b/src/em/values/sets/MaterialSetValue.h index b50d0f1..39c52e5 100644 --- a/src/em/values/sets/MaterialSetValue.h +++ b/src/em/values/sets/MaterialSetValue.h @@ -8,11 +8,11 @@ namespace em::values::sets { struct ValuePtrHash { - constexpr std::size_t operator()(const std::shared_ptr& value) const { return value->hash(); } + std::size_t operator()(const std::shared_ptr& value) const { return value->hash(); } }; struct ValuePtrEq { - constexpr bool operator()(const std::shared_ptr& a, const std::shared_ptr& b) const { + bool operator()(const std::shared_ptr& a, const std::shared_ptr& b) const { return *a == *b; } }; @@ -42,4 +42,4 @@ namespace em::values::sets { private: ValuesSet mValues{}; }; -} // namespace em::values::sets \ No newline at end of file +} // namespace em::values::sets