From 54fb40e545c55d4c30cbcd2b1d837dbd22edfb64 Mon Sep 17 00:00:00 2001 From: Amit Prakash Ambasta Date: Tue, 30 May 2017 16:26:30 +0530 Subject: [PATCH] Call .get() on unique_ptr so that cast to T* is possible --- ortools/graph/ebert_graph.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ortools/graph/ebert_graph.h b/ortools/graph/ebert_graph.h index cb85bc6ce6..4266fcc5ca 100644 --- a/ortools/graph/ebert_graph.h +++ b/ortools/graph/ebert_graph.h @@ -846,7 +846,7 @@ class ForwardStaticGraph // To be used in a DCHECK(). bool TailArrayComplete() const { - CHECK_NOTNULL(tail_); + CHECK_NOTNULL(tail_.get()); for (ArcIndexType arc = kFirstArc; arc < num_arcs_; ++arc) { CHECK(CheckTailIndexValidity(arc)); CHECK(IsNodeValid((*tail_)[arc])); @@ -1684,7 +1684,7 @@ class ForwardEbertGraph // To be used in a DCHECK(). bool TailArrayComplete() const { - CHECK_NOTNULL(tail_); + CHECK_NOTNULL(tail_.get()); for (ArcIndexType arc = kFirstArc; arc < num_arcs_; ++arc) { CHECK(CheckTailIndexValidity(arc)); CHECK(IsNodeValid((*tail_)[arc])); @@ -1778,7 +1778,7 @@ class ForwardEbertGraph // used. void SetTail(const ArcIndexType arc, const NodeIndexType tail) { DCHECK(CheckTailIndexValidity(arc)); - CHECK_NOTNULL(tail_); + CHECK_NOTNULL(tail_.get()); representation_clean_ = false; tail_->Set(arc, tail); }