const-correctness loophole in {CwiseUnary|Triangular|SelfAdjoint}View
@chhtz
Submitted by Christoph HertzbergAssigned to Nobody
Link to original bugzilla bug (#882)
Version: 3.2
Description
The following assignment should not work:
void triangConstTest(const Eigen::MatrixXd& A) {
Eigen::TriangularView<Eigen::MatrixXd, Eigen::Upper> T(A);
T(0,0) = 0.0; // violates const correctness!
}