Michele Caini 1 год назад
Родитель
Сommit
24446f2f81
1 измененных файлов с 1 добавлено и 1 удалено
  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;
     }