File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ inline double get_val(T&& x) {
3030 */
3131template <typename F, typename ... Types>
3232inline void recursive_for_each (F&& f, Types&&... args) {
33- if constexpr (std::conjunction_v<stan::math:: is_tuple<Types>...>) {
33+ if constexpr (std::conjunction_v<stan::is_tuple<Types>...>) {
3434 stan::math::for_each (
3535 [&f](auto &&... args_i) { recursive_for_each (f, args_i...); }, args...);
3636 } else {
Original file line number Diff line number Diff line change 44#include < vector>
55
66TEST (MathMetaPrim, is_tuple) {
7- EXPECT_TRUE ((stan::math:: is_tuple<std::tuple<double >>::value));
8- EXPECT_TRUE ((stan::math:: is_tuple<std::tuple<double >&>::value));
9- EXPECT_TRUE ((stan::math:: is_tuple<std::tuple<double >&&>::value));
10- EXPECT_FALSE ((stan::math:: is_tuple<double >::value));
11- EXPECT_FALSE ((stan::math:: is_tuple<std::vector<double >>::value));
7+ EXPECT_TRUE ((stan::is_tuple<std::tuple<double >>::value));
8+ EXPECT_TRUE ((stan::is_tuple<std::tuple<double >&>::value));
9+ EXPECT_TRUE ((stan::is_tuple<std::tuple<double >&&>::value));
10+ EXPECT_FALSE ((stan::is_tuple<double >::value));
11+ EXPECT_FALSE ((stan::is_tuple<std::vector<double >>::value));
1212}
You can’t perform that action at this time.
0 commit comments