فهرست منبع

group: fight with clang format from time to time :)

Michele Caini 3 سال پیش
والد
کامیت
c6533827f0
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      src/entt/entity/group.hpp

+ 4 - 3
src/entt/entity/group.hpp

@@ -925,14 +925,15 @@ public:
             std::get<0>(pools)->sort_n(descriptor->current, std::move(comp), std::move(algo), std::forward<Args>(args)...);
         }
 
-        std::apply([this](auto *head, auto *...other) {
+        auto cb = [this](auto *head, auto *...other) {
             for(auto next = descriptor->current; next; --next) {
                 const auto pos = next - 1;
                 [[maybe_unused]] const auto entt = head->data()[pos];
                 (other->swap_elements(other->data()[pos], entt), ...);
             }
-        },
-                   pools);
+        };
+
+        std::apply(cb, pools);
     }
 
 private: