Skip to content

Commit

Permalink
meta: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Sep 2, 2024
1 parent 90c9759 commit ea4470b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entt/meta/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ struct meta_type_node {
};

template<auto Member, typename Type, typename Value>
static auto *find_member(Type &from, const Value value) {
[[nodiscard]] auto *find_member(Type &from, const Value value) {
for(auto &&elem: from) {
if((elem.*Member) == value) {
return &elem;
Expand All @@ -171,7 +171,7 @@ static auto *find_member(Type &from, const Value value) {
return static_cast<typename Type::value_type *>(nullptr);
}

static auto *find_overload(meta_func_node *curr, std::remove_pointer_t<decltype(meta_func_node::invoke)> *const ref) {
[[nodiscard]] inline auto *find_overload(meta_func_node *curr, std::remove_pointer_t<decltype(meta_func_node::invoke)> *const ref) {
while(curr && (curr->invoke != ref)) { curr = curr->next.get(); }
return curr;
}
Expand Down

0 comments on commit ea4470b

Please sign in to comment.