Skip to content

Commit abd50b1

Browse files
committed
fix(math_opt): add missing return for non-void methods in ModelStorageV2
1 parent a350787 commit abd50b1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ortools/math_opt/storage/model_storage_v2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,12 +1123,14 @@ template <typename IdType>
11231123
std::vector<IdType> ModelStorageV2::ConstraintsWithVariable(
11241124
const VariableId) const {
11251125
LOG(FATAL) << "not implementable for ModelStorageV2";
1126+
return {};
11261127
}
11271128

11281129
template <typename IdType>
11291130
std::vector<VariableId> ModelStorageV2::VariablesInConstraint(
11301131
const IdType) const {
11311132
LOG(FATAL) << "not implementable for ModelStorageV2";
1133+
return {};
11321134
}
11331135

11341136
} // namespace operations_research::math_opt

0 commit comments

Comments
 (0)