Skip to content

Commit

Permalink
Fix build errors (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Durante authored Jun 30, 2024
1 parent c95e322 commit a43b7f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/em/Parser.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "Parser.h"

#include <algorithm>
#include <unordered_set>

#include "ast/Program.h"
Expand Down
6 changes: 3 additions & 3 deletions src/em/values/sets/MaterialSetValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

namespace em::values::sets {
struct ValuePtrHash {
constexpr std::size_t operator()(const std::shared_ptr<Value>& value) const { return value->hash(); }
std::size_t operator()(const std::shared_ptr<Value>& value) const { return value->hash(); }
};

struct ValuePtrEq {
constexpr bool operator()(const std::shared_ptr<Value>& a, const std::shared_ptr<Value>& b) const {
bool operator()(const std::shared_ptr<Value>& a, const std::shared_ptr<Value>& b) const {
return *a == *b;
}
};
Expand Down Expand Up @@ -42,4 +42,4 @@ namespace em::values::sets {
private:
ValuesSet mValues{};
};
} // namespace em::values::sets
} // namespace em::values::sets

0 comments on commit a43b7f8

Please sign in to comment.