diff --git a/stan/math/prim/functor/operands_and_partials.hpp b/stan/math/prim/functor/operands_and_partials.hpp index 318374f9e12..4fd97837916 100644 --- a/stan/math/prim/functor/operands_and_partials.hpp +++ b/stan/math/prim/functor/operands_and_partials.hpp @@ -54,7 +54,8 @@ class ops_partials_edge; * for this specialization must be a `Arithmetic` */ template -struct ops_partials_edge> { +class ops_partials_edge> { + public: using inner_op = std::conditional_t>::value, value_type_t, Op>; using partials_t = empty_broadcast_array;