Skip to content

Commit 18ce5ae

Browse files
authored
Merge pull request #2506 from spectre-ns/master
Fixed build error in MSVC 2019 by decaying decltype to base type
2 parents f49d573 + a57fa08 commit 18ce5ae

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)