diff --git a/include/generators/order_polytope_generator.h b/include/generators/order_polytope_generator.h index 25f58cc67..739169e7e 100644 --- a/include/generators/order_polytope_generator.h +++ b/include/generators/order_polytope_generator.h @@ -62,7 +62,7 @@ Polytope get_orderpoly(Poset const &poset) { OrderPolytope OP(poset); if constexpr (std::is_same< Polytope, OrderPolytope >::value ) { return OP; - } else { + } else if constexpr (std::is_same >::value ){ Polytope HP(OP.dimension(), OP.get_dense_mat(), OP.get_vec()); return HP; } else {