Prechádzať zdrojové kódy

meta: [[nodiscard]]

Michele Caini 1 rok pred
rodič
commit
24446f2f81
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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.
      * @brief Returns the underlying meta context.
      * @return The underlying meta context.
      * @return The underlying meta context.
      */
      */
-    const meta_ctx &context() const noexcept {
+    [[nodiscard]] const meta_ctx &context() const noexcept {
         return *ctx;
         return *ctx;
     }
     }