Просмотр исходного кода

sparse set: avoid warning due to missing [[nodiscard]]

skypjack 1 год назад
Родитель
Сommit
330bf8e120
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/sparse_set.hpp

+ 1 - 1
src/entt/entity/sparse_set.hpp

@@ -1087,7 +1087,7 @@ public:
     }
 
     /*! @copydoc info */
-    [[deprecated("use ::info instead")]] const type_info &type() const noexcept {
+    [[deprecated("use ::info instead")]] [[nodiscard]] const type_info &type() const noexcept {
         return info();
     }