Răsfoiți Sursa

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

skypjack 3 luni în urmă
părinte
comite
06784b8d63
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 {
         if constexpr(sizeof...(Index) == 0) {
             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...>{});
         } else if constexpr(sizeof...(Index) == 1) {
             return (storage<Index>()->get(entt), ...);