EDIT2: I guess I was not clear enough: what surprises me most is that if i pass a fixed value as second template parameter (as in the last two lines of bar()) everything works fine, only using the sizeof...() operator results in errors, and only when used with Eigen::Matrix.