From d0d00475986dc9b4e9cbc1b8bd6cb35c67dcb07c Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Thu, 5 Sep 2024 13:33:02 +0200 Subject: [PATCH] fix: explicit `typename` for dependent type name --- .github/workflows/ci.yaml | 2 +- src/Core/Slotmap.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a5996fb..4ef3b04 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,7 +20,7 @@ on: - 'README.org' - 'SECURITY.md' schedule: - - cron: '0 9 * * 1' + - cron: '0 9 * * 5' jobs: ci: diff --git a/src/Core/Slotmap.cc b/src/Core/Slotmap.cc index aec48b2..1164e94 100644 --- a/src/Core/Slotmap.cc +++ b/src/Core/Slotmap.cc @@ -10,7 +10,7 @@ namespace volt::core { constexpr void Slotmap::clear(void) noexcept { freelist_init(); } template - constexpr Slotmap::key_type Slotmap::push_back(value_type &&value) { + constexpr typename Slotmap::key_type Slotmap::push_back(value_type &&value) { auto alloc_id { allocate() }; auto &slot { m_indices[alloc_id] }; m_data[slot.id] = std::move(value); @@ -21,7 +21,7 @@ namespace volt::core { } template - constexpr Slotmap::key_type Slotmap::push_back(const value_type &value) { + constexpr typename Slotmap::key_type Slotmap::push_back(const value_type &value) { return push_back(value_type{value}); } @@ -39,7 +39,7 @@ namespace volt::core { } template - constexpr Slotmap::idx_type Slotmap::allocate(void) { + constexpr typename Slotmap::idx_type Slotmap::allocate(void) { if (m_size >= N) throw std::runtime_error { "No space left in Slotmap" }; assert(m_freelist < N); auto slot_id { m_freelist };