Переглянути джерело

handle: instruct the linter to accept some of my choices

Michele Caini 1 рік тому
батько
коміт
4c3fca4673
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      src/entt/entity/handle.hpp

+ 2 - 0
src/entt/entity/handle.hpp

@@ -200,6 +200,7 @@ public:
      * @return A reference to the newly created element.
      */
     template<typename Type, typename... Args>
+    // NOLINTNEXTLINE(modernize-use-nodiscard)
     decltype(auto) emplace(Args &&...args) const {
         static_assert(((sizeof...(Scope) == 0) || ... || std::is_same_v<Type, Scope>), "Invalid type");
         return owner_or_assert().template emplace<Type>(entt, std::forward<Args>(args)...);
@@ -250,6 +251,7 @@ public:
      * @return The number of elements actually removed.
      */
     template<typename... Type>
+    // NOLINTNEXTLINE(modernize-use-nodiscard)
     size_type remove() const {
         static_assert(sizeof...(Scope) == 0 || (type_list_contains_v<type_list<Scope...>, Type> && ...), "Invalid type");
         return owner_or_assert().template remove<Type...>(entt);