Skip to content

Commit 2997e1a

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 0bcdf35 commit 2997e1a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

stan/math/prim/meta/forward_as.hpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,13 @@ inline T_actual&& forward_as(T_actual&& a) { // NOLINT
5454
* @return nothing, this always throws
5555
* @throw always throws std::runtime_error
5656
*/
57-
template <typename T_desired, typename T_actual,
58-
require_any_not_eigen_t<T_desired, T_actual>* = nullptr,
59-
typename = std::enable_if_t<
60-
!std::is_same<std::decay<T_actual>, std::decay<T_desired>>::value
61-
&& !(std::is_floating_point_v<std::decay_t<T_desired>>
62-
&& std::is_integral_v<std::decay_t<T_actual>>)>>
57+
template <
58+
typename T_desired, typename T_actual,
59+
require_any_not_eigen_t<T_desired, T_actual>* = nullptr,
60+
typename = std::enable_if_t<
61+
!std::is_same<std::decay<T_actual>, std::decay<T_desired>>::value
62+
&& !(std::is_floating_point_v<std::decay_t<
63+
T_desired>> && std::is_integral_v<std::decay_t<T_actual>>)>>
6364
inline T_desired forward_as(const T_actual& a) {
6465
throw std::runtime_error("Wrong type assumed! Please file a bug report.");
6566
}
@@ -80,9 +81,9 @@ inline T_desired forward_as(const T_actual& a) {
8081
* @return a
8182
*/
8283
template <typename T_desired, typename T_actual,
83-
typename
84-
= std::enable_if_t<std::is_floating_point_v<std::decay_t<T_desired>>
85-
&& std::is_integral_v<std::decay_t<T_actual>>>>
84+
typename = std::enable_if_t<
85+
std::is_floating_point_v<std::decay_t<
86+
T_desired>> && std::is_integral_v<std::decay_t<T_actual>>>>
8687
inline T_desired forward_as(const T_actual& a) {
8788
return static_cast<T_desired>(a);
8889
}

0 commit comments

Comments
 (0)