Michele Caini 3 лет назад
Родитель
Сommit
fc68c1b290
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      src/entt/entity/group.hpp
  2. 1 1
      src/entt/entity/view.hpp

+ 2 - 2
src/entt/entity/group.hpp

@@ -186,7 +186,7 @@ public:
      */
     template<std::size_t Index>
     [[nodiscard]] decltype(auto) storage() const noexcept {
-        static constexpr auto offset = sizeof...(Get);
+        constexpr auto offset = sizeof...(Get);
 
         if constexpr(Index < offset) {
             return *std::get<Index>(pools);
@@ -584,7 +584,7 @@ public:
      */
     template<std::size_t Index>
     [[nodiscard]] decltype(auto) storage() const noexcept {
-        static constexpr auto offset = sizeof...(Owned) + sizeof...(Get);
+        constexpr auto offset = sizeof...(Owned) + sizeof...(Get);
 
         if constexpr(Index < offset) {
             return *std::get<Index>(pools);

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

@@ -330,7 +330,7 @@ public:
      */
     template<std::size_t Index>
     [[nodiscard]] decltype(auto) storage() const noexcept {
-        static constexpr auto offset = sizeof...(Get);
+        constexpr auto offset = sizeof...(Get);
 
         if constexpr(Index < offset) {
             return *std::get<Index>(pools);