Bläddra i källkod

storage: suppress wrong-ish warning

Michele Caini 1 år sedan
förälder
incheckning
e342f3b419
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      src/entt/entity/storage.hpp

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

@@ -907,6 +907,7 @@ public:
      * @param entt A valid identifier.
      * @param entt A valid identifier.
      */
      */
     template<typename... Args>
     template<typename... Args>
+    // NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
     void emplace(const entity_type entt, Args &&...) {
     void emplace(const entity_type entt, Args &&...) {
         base_type::try_emplace(entt, false);
         base_type::try_emplace(entt, false);
     }
     }
@@ -931,6 +932,7 @@ public:
      * @param last An iterator past the last element of the range of entities.
      * @param last An iterator past the last element of the range of entities.
      */
      */
     template<typename It, typename... Args>
     template<typename It, typename... Args>
+    // NOLINTNEXTLINE(cppcoreguidelines-missing-std-forward)
     void insert(It first, It last, Args &&...) {
     void insert(It first, It last, Args &&...) {
         for(; first != last; ++first) {
         for(; first != last; ++first) {
             base_type::try_emplace(*first, true);
             base_type::try_emplace(*first, true);