Skip to content

Commit 3fcfe24

Browse files
authored
Merge pull request #3091 from stan-dev/fix/clang-18-warning
Resolve clang18 warning about ops_partials_edge
2 parents af63738 + 2f0b2a6 commit 3fcfe24

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stan/math/prim/functor/operands_and_partials.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class ops_partials_edge;
5454
* for this specialization must be a `Arithmetic`
5555
*/
5656
template <typename ViewElt, typename Op>
57-
struct ops_partials_edge<ViewElt, Op, require_st_arithmetic<Op>> {
57+
class ops_partials_edge<ViewElt, Op, require_st_arithmetic<Op>> {
58+
public:
5859
using inner_op = std::conditional_t<is_eigen<value_type_t<Op>>::value,
5960
value_type_t<Op>, Op>;
6061
using partials_t = empty_broadcast_array<ViewElt, inner_op>;

0 commit comments

Comments
 (0)