Skip to content

Commit

Permalink
Refactor matches method signature to use item references instead of s…
Browse files Browse the repository at this point in the history
…hared pointers
  • Loading branch information
riccardodebenedictis committed Nov 8, 2024
1 parent 3867bbc commit 9fda515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ namespace riddle
* @param rhs The right-hand side item.
* @return True if the items match, false otherwise.
*/
[[nodiscard]] virtual bool matches(const std::shared_ptr<item> &lhs, const std::shared_ptr<item> &rhs) const = 0;
[[nodiscard]] virtual bool matches(item &lhs, item &rhs) const = 0;

/**
* @brief Return the logical and of the bool expressions.
Expand Down

0 comments on commit 9fda515

Please sign in to comment.