Skip to content

Commit

Permalink
avoid unused warnings for iterator typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Aug 16, 2024
1 parent 030acbd commit d86c697
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions Core/include/Acts/Propagator/MultiEigenStepperLoop.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,11 @@ class MultiEigenStepperLoop
/// proxy internally holding a reference
auto componentIterable(State& state) const {
struct Iterator {
using difference_type = std::ptrdiff_t;
using value_type = ComponentProxy;
using reference = ComponentProxy;
using pointer = void;
using iterator_category = std::forward_iterator_tag;
using difference_type [[maybe_unused]] = std::ptrdiff_t;
using value_type [[maybe_unused]] = ComponentProxy;
using reference [[maybe_unused]] = ComponentProxy;
using pointer [[maybe_unused]] = void;
using iterator_category [[maybe_unused]] = std::forward_iterator_tag;

typename decltype(state.components)::iterator it;
const State& s;
Expand All @@ -414,8 +414,6 @@ class MultiEigenStepperLoop
};

struct Iterable {
using iterator = Iterator;

State& s;

// clang-format off
Expand All @@ -433,11 +431,11 @@ class MultiEigenStepperLoop
/// proxy internally holding a reference
auto constComponentIterable(const State& state) const {
struct ConstIterator {
using difference_type = std::ptrdiff_t;
using value_type = ConstComponentProxy;
using reference = ConstComponentProxy;
using pointer = void;
using iterator_category = std::forward_iterator_tag;
using difference_type [[maybe_unused]] = std::ptrdiff_t;
using value_type [[maybe_unused]] = ConstComponentProxy;
using reference [[maybe_unused]] = ConstComponentProxy;
using pointer [[maybe_unused]] = void;
using iterator_category [[maybe_unused]] = std::forward_iterator_tag;

typename decltype(state.components)::const_iterator it;
const State& s;
Expand All @@ -451,7 +449,6 @@ class MultiEigenStepperLoop
};

struct Iterable {
using iterator = ConstIterator;
const State& s;

// clang-format off
Expand Down

0 comments on commit d86c697

Please sign in to comment.