Skip to content

Commit aeaf6f7

Browse files
committed
davey: add missing typename
1 parent 140eeae commit aeaf6f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/entt/tools/davey.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static void present_storage(const meta_ctx &ctx, const basic_sparse_set<Entity,
140140

141141
if(ImGui::TreeNode(&storage.info(), "%d [%d/%d]", to_integral(entt), to_entity(entt), to_version(entt))) {
142142
if(const auto obj = type.from_void(storage.value(entt)); obj) {
143-
present_element<std::decay_t<decltype(storage)>::entity_type>(obj, [](const char *name, const Entity entt) {
143+
present_element<typename std::decay_t<decltype(storage)>::entity_type>(obj, [](const char *name, const Entity entt) {
144144
ImGui::Text("%s: %d [%d/%d]", name, to_integral(entt), to_entity(entt), to_version(entt));
145145
});
146146
}
@@ -187,7 +187,7 @@ static void present_entity(const meta_ctx &ctx, const Entity entt, const It from
187187
template<typename... Get, typename... Exclude, std::size_t... Index>
188188
static void present_view(const meta_ctx &ctx, const basic_view<get_t<Get...>, exclude_t<Exclude...>> &view, std::index_sequence<Index...>) {
189189
using view_type = basic_view<get_t<Get...>, exclude_t<Exclude...>>;
190-
const std::array<const view_type::common_type *, sizeof...(Index)> range{view.template storage<Index>()...};
190+
const std::array<const typename view_type::common_type *, sizeof...(Index)> range{view.template storage<Index>()...};
191191

192192
for(auto tup: view.each()) {
193193
const auto entt = std::get<0>(tup);

0 commit comments

Comments
 (0)