Sfoglia il codice sorgente

meta avoid shadow warnings

Michele Caini 3 anni fa
parent
commit
e13996f68a
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/entt/meta/meta.hpp

+ 3 - 3
src/entt/meta/meta.hpp

@@ -928,9 +928,9 @@ class meta_type {
                 size_type direct{};
                 size_type direct{};
                 size_type ext{};
                 size_type ext{};
 
 
-                for(size_type next{}; next < sz && next == (direct + ext) && args[next]; ++next) {
-                    const auto type = args[next].type();
-                    const auto other = curr->arg(next);
+                for(size_type pos{}; pos < sz && pos == (direct + ext) && args[pos]; ++pos) {
+                    const auto type = args[pos].type();
+                    const auto other = curr->arg(pos);
 
 
                     if(const auto &info = other.info(); info == type.info()) {
                     if(const auto &info = other.info(); info == type.info()) {
                         ++direct;
                         ++direct;