Przeglądaj źródła

view: make it clear to clang that I'm using the this pointer

skypjack 2 miesięcy temu
rodzic
commit
06784b8d63
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/entt/entity/view.hpp

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

@@ -611,7 +611,7 @@ public:
     [[nodiscard]] decltype(auto) get(const entity_type entt) const {
     [[nodiscard]] decltype(auto) get(const entity_type entt) const {
         if constexpr(sizeof...(Index) == 0) {
         if constexpr(sizeof...(Index) == 0) {
             return [this, entt]<auto... Idx>(std::index_sequence<Idx...>) {
             return [this, entt]<auto... Idx>(std::index_sequence<Idx...>) {
-                return std::tuple_cat(storage<Idx>()->get_as_tuple(entt)...);
+                return std::tuple_cat(this->storage<Idx>()->get_as_tuple(entt)...);
             }(std::index_sequence_for<Get...>{});
             }(std::index_sequence_for<Get...>{});
         } else if constexpr(sizeof...(Index) == 1) {
         } else if constexpr(sizeof...(Index) == 1) {
             return (storage<Index>()->get(entt), ...);
             return (storage<Index>()->get(entt), ...);