Skip to content

Commit 7ed9ab7

Browse files
With Eigen3.5.x, unary/binary block expressions don't like the manipulated c from above
1 parent bb429dd commit 7ed9ab7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/expressions_impl.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3047,10 +3047,11 @@ BOOST_FIXTURE_TEST_CASE_TEMPLATE(empty_trange1, F, Fixtures, F) {
30473047

30483048
// unary/binary block expressions
30493049
{
3050-
BOOST_CHECK_NO_THROW(c("a,b,c") = aC("a,b,c").block(lobound, upbound));
3051-
BOOST_CHECK_NO_THROW(c("a,b,c") +=
3050+
std::decay_t<decltype(c)> t3;
3051+
BOOST_CHECK_NO_THROW(t3("a,b,c") = aC("a,b,c").block(lobound, upbound));
3052+
BOOST_CHECK_NO_THROW(t3("a,b,c") +=
30523053
2 * aC("a,b,c").block(lobound, upbound).conj());
3053-
BOOST_CHECK_NO_THROW(c("a,b,c") =
3054+
BOOST_CHECK_NO_THROW(t3("a,b,c") =
30543055
2 * conj(aC("a,c,b").block(lobound, upbound)));
30553056
}
30563057

0 commit comments

Comments
 (0)