Skip to content

Commit

Permalink
fix: explicit typename for dependent type name
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Sep 5, 2024
1 parent cf39577 commit d0d0047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
- 'README.org'
- 'SECURITY.md'
schedule:
- cron: '0 9 * * 1'
- cron: '0 9 * * 5'

jobs:
ci:
Expand Down
6 changes: 3 additions & 3 deletions src/Core/Slotmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace volt::core {
constexpr void Slotmap<T, N, I>::clear(void) noexcept { freelist_init(); }

template <typename T, size_t N, typename I>
constexpr Slotmap<T, N, I>::key_type Slotmap<T, N, I>::push_back(value_type &&value) {
constexpr typename Slotmap<T, N, I>::key_type Slotmap<T, N, I>::push_back(value_type &&value) {
auto alloc_id { allocate() };
auto &slot { m_indices[alloc_id] };
m_data[slot.id] = std::move(value);
Expand All @@ -21,7 +21,7 @@ namespace volt::core {
}

template <typename T, size_t N, typename I>
constexpr Slotmap<T, N, I>::key_type Slotmap<T, N, I>::push_back(const value_type &value) {
constexpr typename Slotmap<T, N, I>::key_type Slotmap<T, N, I>::push_back(const value_type &value) {
return push_back(value_type{value});
}

Expand All @@ -39,7 +39,7 @@ namespace volt::core {
}

template <typename T, size_t N, typename I>
constexpr Slotmap<T, N, I>::idx_type Slotmap<T, N, I>::allocate(void) {
constexpr typename Slotmap<T, N, I>::idx_type Slotmap<T, N, I>::allocate(void) {
if (m_size >= N) throw std::runtime_error { "No space left in Slotmap" };
assert(m_freelist < N);
auto slot_id { m_freelist };
Expand Down

0 comments on commit d0d0047

Please sign in to comment.