We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 687764d + a48d8ac commit 7a66541Copy full SHA for 7a66541
src/stan/io/serializer.hpp
@@ -45,7 +45,8 @@ class serializer {
45
46
template <typename S>
47
using is_arithmetic_or_ad
48
- = bool_constant<std::is_arithmetic<S>::value || is_autodiff<S>::value>;
+ = bool_constant<(std::is_arithmetic<S>::value || is_autodiff<S>::value)
49
+ && is_stan_scalar<S>::value>;
50
51
public:
52
using matrix_t = Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>;
0 commit comments