Skip to content

Commit

Permalink
meta: [[nodiscard]]
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Sep 12, 2024
1 parent 2ab5e4d commit 33578dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/meta/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ template<auto Member, typename Type, typename Value>
}

template<auto Member>
auto *look_for(const meta_context &context, const meta_type_node &node, const id_type id) {
[[nodiscard]] auto *look_for(const meta_context &context, const meta_type_node &node, const id_type id) {
using value_type = typename std::remove_reference_t<decltype((node.details.get()->*Member))>::value_type;

if(node.details) {
Expand Down

0 comments on commit 33578dd

Please sign in to comment.