Ambiguous calls to Eigen::Ref

Submitted by Pierre G.

Assigned to Nobody

Link to original bugzilla bug (#969)
Version: 3.2
Operating system: Linux

Description

Hello,

The following code will produce an ambiguous call at compilation with Eigen >= 3.2.3 and the current dev version (on g++ 4.8.2 and clang 3.4.2):

#include <Eigen/Core>

typedef Eigen::RefEigen::MatrixXd RefMat;
typedef Eigen::RefEigen::VectorXi RefVecInt;

void fun(RefMat Q) {}

void fun(RefVecInt kx) {}

int main(int, char**)
{
Eigen::MatrixXd M;
fun(M);
return 0;
}

The issue was introduced by commit c6fefe5d (c6fefe5d) the culprit being the removal of the enable_if from the template parameters.

Best regards,

Blocking

#558 (closed)

Edited by Eigen Bugzilla