File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ template <
62
62
&& !(std::is_floating_point_v<std::decay_t <
63
63
T_desired>> && std::is_integral_v<std::decay_t <T_actual>>)>>
64
64
inline T_desired forward_as (const T_actual& a) {
65
- throw std::runtime_error (" Wrong type assumed! Please file a bug report." );
65
+ throw std::runtime_error (
66
+ " Wrong type assumed! Please file a bug report. prim/meta/forward_as.hpp "
67
+ " line "
68
+ + std::to_string (__LINE__));
66
69
}
67
70
68
71
/* * \ingroup type_trait
@@ -146,7 +149,10 @@ template <
146
149
T_desired::ColsAtCompileTime,
147
150
std::decay_t <T_actual>::ColsAtCompileTime)>* = nullptr >
148
151
inline T_desired forward_as (const T_actual& a) {
149
- throw std::runtime_error (" Wrong type assumed! Please file a bug report." );
152
+ throw std::runtime_error (
153
+ " Wrong type assumed! Please file a bug report. prim/meta/forward_as.hpp "
154
+ " line "
155
+ + std::to_string (__LINE__));
150
156
}
151
157
152
158
} // namespace math
Original file line number Diff line number Diff line change @@ -16,13 +16,15 @@ struct nonexisting_adjoint {
16
16
nonexisting_adjoint operator +=(T) const {
17
17
throw std::runtime_error (
18
18
" internal::nonexisting_adjoint::operator+= should never be called! "
19
- " Please file a bug report." );
19
+ " Please file a bug report. rev/fun/adjoint_of.hpp line "
20
+ + std::to_string (__LINE__));
20
21
}
21
22
template <typename T>
22
23
nonexisting_adjoint operator -=(T) const {
23
24
throw std::runtime_error (
24
25
" internal::nonexisting_adjoint::operator-= should never be called! "
25
- " Please file a bug report." );
26
+ " Please file a bug report. rev/fun/adjoint_of.hpp line "
27
+ + std::to_string (__LINE__));
26
28
}
27
29
};
28
30
} // namespace internal
You can’t perform that action at this time.
0 commit comments