Skip to content

Commit

Permalink
graph: fix msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 29, 2024
1 parent f69a0f4 commit ce39e05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ortools/graph/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,8 @@ void StaticGraph<NodeIndexType, ArcIndexType>::Build(
template <typename NodeIndexType, typename ArcIndexType>
class StaticGraph<NodeIndexType, ArcIndexType>::OutgoingArcIterator {
public:
OutgoingArcIterator(const OutgoingArcIterator&) = default;
OutgoingArcIterator& operator=(const OutgoingArcIterator&) = default;
OutgoingArcIterator(const StaticGraph& graph, NodeIndexType node)
: index_(graph.start_[node]), limit_(graph.DirectArcLimit(node)) {}
OutgoingArcIterator(const StaticGraph& graph, NodeIndexType node,
Expand All @@ -1461,7 +1463,7 @@ class StaticGraph<NodeIndexType, ArcIndexType>::OutgoingArcIterator {

private:
ArcIndexType index_;
const ArcIndexType limit_;
ArcIndexType limit_;
};

// ReverseArcListGraph implementation ------------------------------------------
Expand Down

0 comments on commit ce39e05

Please sign in to comment.