Skip to content

Commit

Permalink
Specify return type of Requirements begin() and end()
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Aug 24, 2023
1 parent c144bd4 commit b45879d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ class Requirements {

Requirements(const Requirements&) = default;

auto begin() const { return m_subsystems.begin(); }
std::vector<Subsystem*>::const_iterator begin() const {
return m_subsystems.begin();
}

auto end() const { return m_subsystems.end(); }
std::vector<Subsystem*>::const_iterator end() const {
return m_subsystems.end();
}

private:
const std::vector<Subsystem*> m_subsystems{};
Expand Down

0 comments on commit b45879d

Please sign in to comment.