Skip to content

Commit 2ca03e7

Browse files
author
Andrew Johnson
committed
Revert auto&&
1 parent 5fdf2ee commit 2ca03e7

24 files changed

Lines changed: 24 additions & 24 deletions

stan/math/prim/fun/acos.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ template <typename Container,
5050
require_container_st<is_container, std::is_arithmetic, Container>...>
5151
inline auto acos(const Container& x) {
5252
return apply_vector_unary<Container>::apply(
53-
x, [](auto&& v) { return v.array().acos(); });
53+
x, [](const auto& v) { return v.array().acos(); });
5454
}
5555

5656
} // namespace math

stan/math/prim/fun/asin.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ template <typename Container,
5050
require_container_st<is_container, std::is_arithmetic, Container>...>
5151
inline auto asin(const Container& x) {
5252
return apply_vector_unary<Container>::apply(
53-
x, [](auto&& v) { return v.array().asin(); });
53+
x, [](const auto& v) { return v.array().asin(); });
5454
}
5555

5656
} // namespace math

stan/math/prim/fun/atan.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ template <typename Container,
5050
require_container_st<is_container, std::is_arithmetic, Container>...>
5151
inline auto atan(const Container& x) {
5252
return apply_vector_unary<Container>::apply(
53-
x, [](auto&& v) { return v.array().atan(); });
53+
x, [](const auto& v) { return v.array().atan(); });
5454
}
5555

5656
} // namespace math

stan/math/prim/fun/ceil.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ template <typename Container,
5050
require_container_st<is_container, std::is_arithmetic, Container>...>
5151
inline auto ceil(const Container& x) {
5252
return apply_vector_unary<Container>::apply(
53-
x, [](auto&& v) { return v.array().ceil(); });
53+
x, [](const auto& v) { return v.array().ceil(); });
5454
}
5555

5656
} // namespace math

stan/math/prim/fun/cos.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ template <typename Container,
5050
require_container_st<is_container, std::is_arithmetic, Container>...>
5151
inline auto cos(const Container& x) {
5252
return apply_vector_unary<Container>::apply(
53-
x, [](auto&& v) { return v.array().cos(); });
53+
x, [](const auto& v) { return v.array().cos(); });
5454
}
5555

5656
} // namespace math

stan/math/prim/fun/cosh.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ template <typename Container,
5050
require_container_st<is_container, std::is_arithmetic, Container>...>
5151
inline auto cosh(const Container& x) {
5252
return apply_vector_unary<Container>::apply(
53-
x, [](auto&& v) { return v.array().cosh(); });
53+
x, [](const auto& v) { return v.array().cosh(); });
5454
}
5555
} // namespace math
5656
} // namespace stan

stan/math/prim/fun/exp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ template <typename Container,
5454
require_container_st<is_container, std::is_arithmetic, Container>...>
5555
inline auto exp(const Container& x) {
5656
return apply_vector_unary<Container>::apply(
57-
x, [](auto&& v) { return v.array().exp(); });
57+
x, [](const auto& v) { return v.array().exp(); });
5858
}
5959

6060
} // namespace math

stan/math/prim/fun/fabs.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ template <typename Container,
5050
require_container_st<is_container, std::is_arithmetic, Container>...>
5151
inline auto fabs(const Container& x) {
5252
return apply_vector_unary<Container>::apply(
53-
x, [](auto&& v) { return v.array().abs(); });
53+
x, [](const auto& v) { return v.array().abs(); });
5454
}
5555

5656
} // namespace math

stan/math/prim/fun/floor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ template <typename Container,
5050
require_container_st<is_container, std::is_arithmetic, Container>...>
5151
inline auto floor(const Container& x) {
5252
return apply_vector_unary<Container>::apply(
53-
x, [](auto&& v) { return v.array().floor(); });
53+
x, [](const auto& v) { return v.array().floor(); });
5454
}
5555

5656
} // namespace math

stan/math/prim/fun/inv.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ template <typename Container,
4747
require_container_st<is_container, std::is_arithmetic, Container>...>
4848
inline auto inv(const Container& x) {
4949
return apply_vector_unary<Container>::apply(
50-
x, [](auto&& v) { return v.array().inverse(); });
50+
x, [](const auto& v) { return v.array().inverse(); });
5151
}
5252

5353
} // namespace math

0 commit comments

Comments
 (0)