Skip to content

Commit

Permalink
fix dangling ref (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir authored Sep 3, 2024
1 parent 393f8f0 commit 830b9af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpp/benders/outer_loop/OuterLoopInputDataReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void OuterLoopInputData::AddSingleData(const OuterLoopSingleInputData &data) {
outer_loop_data_.push_back(data);
}

std::vector<OuterLoopSingleInputData> OuterLoopInputData::OuterLoopData()
const std::vector<OuterLoopSingleInputData> &OuterLoopInputData::OuterLoopData()
const {
return outer_loop_data_;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ class OuterLoopInputData {
public:
OuterLoopInputData() = default;

[[nodiscard]] std::vector<OuterLoopSingleInputData> OuterLoopData() const;
[[nodiscard]] const std::vector<OuterLoopSingleInputData> &OuterLoopData()
const;
[[nodiscard]] std::vector<std::string> PatternBodies() const;
[[nodiscard]] std::string PatternsPrefix() const;

Expand Down

0 comments on commit 830b9af

Please sign in to comment.