Просмотр исходного кода

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

skypjack 2 месяцев назад
Родитель
Сommit
06784b8d63
1 измененных файлов с 1 добавлено и 1 удалено
  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), ...);