Skip to content

Commit

Permalink
fix: please test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DNKpp committed Sep 30, 2023
1 parent 2c28c38 commit dfe45b0
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions include/Simple-Utility/graph/Queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ namespace sl::graph::queue

namespace sl::graph::queue::detail
{
// GCOVR_EXCL_START
template <class T>
struct dummy_input_range
{
Expand All @@ -169,10 +170,14 @@ namespace sl::graph::queue::detail
using element_type = T;
using difference_type = std::ptrdiff_t;

T& operator *() const;
iterator& operator ++();
void operator ++(int);
bool operator==(const iterator&) const;
T operator *() const { throw std::runtime_error{"Dummy"}; }

iterator& operator ++() { return *this; }

// ReSharper disable once CppDiscardedPostfixOperatorResult
void operator ++(int) { (*this)++; }

bool operator==(const iterator&) const = default;
};

iterator begin();
Expand All @@ -181,6 +186,8 @@ namespace sl::graph::queue::detail
};

static_assert(std::ranges::input_range<dummy_input_range<int>>);

// GCOVR_EXCL_END
}

namespace sl::graph::concepts
Expand Down

0 comments on commit dfe45b0

Please sign in to comment.