Skip to content

Commit a57fa08

Browse files
committed
Fixed build error by decaying decltype to base type
1 parent f49d573 commit a57fa08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_extended_xsort.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ namespace xt
107107

108108
// py_median = np.median(a)
109109
double py_median = 300.0;
110-
EXPECT_EQ(static_cast<decltype(py_a)::value_type>(py_median), xt::median(py_a));
110+
EXPECT_EQ(static_cast<std::decay<decltype(py_a)>::type::value_type>(py_median), xt::median(py_a));
111111
}
112112

113113
/*py

0 commit comments

Comments
 (0)