diff --git a/ortools/graph/min_cost_flow.h b/ortools/graph/min_cost_flow.h index 2e71d6f34d..edce7a179c 100644 --- a/ortools/graph/min_cost_flow.h +++ b/ortools/graph/min_cost_flow.h @@ -691,8 +691,7 @@ extern template class GenericMinCostFlow< struct MinCostFlow : public MinCostFlowBase { template MinCostFlow() { - static_assert(false, - "MinCostFlow is deprecated. Use `SimpleMinCostFlow` or " + LOG(FATAL) << "MinCostFlow is deprecated. Use `SimpleMinCostFlow` or " "`GenericMinCostFlow` with a specific graph type instead."); } };