[go: up one dir, main page]

const-correctness loophole in {CwiseUnary|Triangular|SelfAdjoint}View

Submitted by Christoph Hertzberg @chhtz

Assigned 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!
}

Blocking

#558 (closed)

Edited by Eigen Bugzilla