Explorar o código

meta: [[nodiscard]]

Michele Caini hai 1 ano
pai
achega
24446f2f81
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     }