Registered Member
|
Hello,
I attempted to call eigen functions from member functions within a template class. Many functions work, however the triangularView() function does not compile. These functions all work when I call them from a plain function. The error I recieve is: expected primary-expression before ‘)’ token For example:
In the above code, the triangularView function compiles properly when it is outside the template class but produces a compile error within the template class' member function. Is it possible to do something like this? The reason I am looking for something like this is that I am implementing an estimator for systems of different sizes (known at compile time and small - 1 to 10 max), and I was hoping I could give the system size as a template parameter and reduce rewriting the code and / avoid using defines. Edit: I should mention, I am using the trunk version on Ubuntu 10.10, 64 bit. and gcc 4.4.5 Regards Sri |
Registered Member
|
This is caused by a nuance in the C++ language. You need to add the template keyword. So replace the offending line by
|
Registered Member
|
That fixed the problem.
Thank you! Regards Sri |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft