Quellcode durchsuchen

meta: [[nodiscard]]

Michele Caini vor 1 Jahr
Ursprung
Commit
24446f2f81
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/entt/meta/meta.hpp

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

@@ -646,7 +646,7 @@ public:
      * @brief Returns the underlying meta context.
      * @return The underlying meta context.
      */
-    const meta_ctx &context() const noexcept {
+    [[nodiscard]] const meta_ctx &context() const noexcept {
         return *ctx;
     }