Registered Member
|
Hi there, again.
I have a little question on template magic. Namely, I want to subclass Matrix
Within my class I call the method
I need the call of 'cast' because cwise() MathArrayBase MathArrayBase::operator( (this->Base::cwise() () ); } [/code] The problem: The compiler complains at 'cast()' saying
I am not that confident with templates to resolve this... When I remove and write XXX.cast() the template compiles fine, but it complains again at the same line when I write
which is natural. I think this is not really Eigen2-related, but hopefully someone went into the same problem and might offer some solution? Thanks! |
Registered Member
|
this is a really nasty aspect of c++ that we learnt while coding eigen2.
the problem is that you need to add a "template" keyword before the cast call, like this:
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list! |
Registered Member
|
Wow! So obvious. Thanks! |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell