Jelajahi Sumber

meta: [[nodiscard]]

Michele Caini 1 tahun lalu
induk
melakukan
24446f2f81
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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;
     }