Skip to content

Commit

Permalink
fix: change typename to typename... to fix clang compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSeemaier committed Sep 26, 2024
1 parent d8e9cbf commit 26f1d8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions kaminpar-common/datastructures/binary_heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ template <
typename Key,
template <typename>
typename Comparator,
template <typename> typename Container = std::vector>
template <typename...> typename Container = std::vector>
class DynamicBinaryForest {
static constexpr std::size_t kTreeArity = 4;
static constexpr ID kInvalidID = std::numeric_limits<ID>::max();
Expand Down Expand Up @@ -655,15 +655,15 @@ class DynamicBinaryForest {
Comparator<Key> _comparator{};
};

template <typename ID, typename Key, template <typename> typename Container = std::vector>
template <typename ID, typename Key, template <typename...> typename Container = std::vector>
using DynamicBinaryMaxForest =
DynamicBinaryForest<ID, Key, binary_heap::max_heap_comparator, Container>;

template <typename ID, typename Key, template <typename> typename Container = std::vector>
template <typename ID, typename Key, template <typename...> typename Container = std::vector>
using DynamicBinaryMinForest =
DynamicBinaryForest<ID, Key, binary_heap::min_heap_comparator, Container>;

template <typename ID, typename Key, template <typename> typename Container = std::vector>
template <typename ID, typename Key, template <typename...> typename Container = std::vector>
class DynamicBinaryMinMaxForest {
public:
DynamicBinaryMinMaxForest() {}
Expand Down
2 changes: 1 addition & 1 deletion kaminpar-common/datastructures/marker.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace kaminpar {
template <
std::size_t kNumConcurrentMarkers = 1,
typename Value = std::size_t,
template <typename> typename Container = std::vector>
template <typename...> typename Container = std::vector>
class Marker {
public:
explicit Marker() : _marker_id(0), _first_unmarked_element{0} {
Expand Down

0 comments on commit 26f1d8e

Please sign in to comment.