From c3365c2e179dae1baa492e77f7322bd979ef8444 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Thu, 27 Jun 2024 10:38:40 -0400 Subject: [PATCH 1/3] Resolve clang18 warning about ops_partials_edge --- stan/math/prim/functor/operands_and_partials.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stan/math/prim/functor/operands_and_partials.hpp b/stan/math/prim/functor/operands_and_partials.hpp index 318374f9e12..e7c9fc50a10 100644 --- a/stan/math/prim/functor/operands_and_partials.hpp +++ b/stan/math/prim/functor/operands_and_partials.hpp @@ -54,7 +54,7 @@ class ops_partials_edge; * for this specialization must be a `Arithmetic` */ template -struct ops_partials_edge> { +class ops_partials_edge> { using inner_op = std::conditional_t>::value, value_type_t, Op>; using partials_t = empty_broadcast_array; From 1ef4abdb67451b0d1a2b85c5f3641b4fbdfb33ac Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Thu, 27 Jun 2024 11:28:42 -0400 Subject: [PATCH 2/3] class needs public declaration --- stan/math/prim/functor/operands_and_partials.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stan/math/prim/functor/operands_and_partials.hpp b/stan/math/prim/functor/operands_and_partials.hpp index e7c9fc50a10..016d413d4e8 100644 --- a/stan/math/prim/functor/operands_and_partials.hpp +++ b/stan/math/prim/functor/operands_and_partials.hpp @@ -55,6 +55,7 @@ class ops_partials_edge; */ template class ops_partials_edge> { + public: using inner_op = std::conditional_t>::value, value_type_t, Op>; using partials_t = empty_broadcast_array; From 2f0b2a62559ffd2b446e114fe5ffa4251a0852f1 Mon Sep 17 00:00:00 2001 From: Stan Jenkins Date: Thu, 27 Jun 2024 11:29:43 -0400 Subject: [PATCH 3/3] [Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1 --- stan/math/prim/functor/operands_and_partials.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stan/math/prim/functor/operands_and_partials.hpp b/stan/math/prim/functor/operands_and_partials.hpp index 016d413d4e8..4fd97837916 100644 --- a/stan/math/prim/functor/operands_and_partials.hpp +++ b/stan/math/prim/functor/operands_and_partials.hpp @@ -55,7 +55,7 @@ class ops_partials_edge; */ template class ops_partials_edge> { - public: + public: using inner_op = std::conditional_t>::value, value_type_t, Op>; using partials_t = empty_broadcast_array;