Skip to content

Commit 18a9cbf

Browse files
committed
update fvar detection in eigen_plugins.h
1 parent eb0d984 commit 18a9cbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stan/math/prim/eigen_plugins.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ template<class, class = void>
1010
struct is_fvar : std::false_type
1111
{ };
1212
template<class T>
13-
struct is_fvar<T, decltype((void)(T::d_))> : std::true_type
13+
struct is_fvar<T, std::void_t<decltype(T::d_)>> : std::true_type
1414
{ };
1515

1616
//TODO(Andrew): Replace std::is_const<>::value with std::is_const_v<> after move to C++17

0 commit comments

Comments
 (0)