Browse Source

meta: missing [[nodiscard]]

skypjack 6 months ago
parent
commit
b400927f02
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -204,7 +204,7 @@ class meta_any {
         }
     }
 
-    const auto &fetch_node() const {
+    [[nodiscard]] const auto &fetch_node() const {
         if((lazy_node.info == nullptr) && (resolve != nullptr)) {
             lazy_node = resolve(internal::meta_context::from(*ctx));
         }