[eigen] new tutorial on writing functions taking Eigen types as paramters

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi,

caused by my yesterday's naivety I wrote a tutorial on writing
functions taking Eigen types as parameters.

There were some surprises and I would appreciate if somebody finds the
time to read the page and give me some feedback.

Just a short note for Visual Studio users. It was quite a surprise for
me to see that the following example does not compile on Visual Studio
10

struct Base {};
struct Derived : public Base {};
void buggy(Base&& b) {}

int main()
{
  Derived d;
  buggy(d);
}

which means, we cannot yet use rvalue references to circumvent the
EIGEN_REF_TO_TEMPORARY hack.

- Hauke



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/