Skip to content

Commit

Permalink
Fixed build error by decaying decltype to base type
Browse files Browse the repository at this point in the history
  • Loading branch information
spectre-ns committed Apr 2, 2022
1 parent f49d573 commit a57fa08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_extended_xsort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ namespace xt

// py_median = np.median(a)
double py_median = 300.0;
EXPECT_EQ(static_cast<decltype(py_a)::value_type>(py_median), xt::median(py_a));
EXPECT_EQ(static_cast<std::decay<decltype(py_a)>::type::value_type>(py_median), xt::median(py_a));
}

/*py
Expand Down

0 comments on commit a57fa08

Please sign in to comment.