You need typename there as well.
But I would strongly advise against using "vector" as the name of your typedef.
You need typename there as well |
sorry, where? OK there were not so many possibilities so I found it out
1 2
|
template<typename T>
typename lsq_neq<T>::vector lsq_neq<T>::nnls(const typename lsq_neq<T>::matrix &E, const typename lsq_neq<T>::vector &f)
|
but it is ugly! Why? It would be nice if I did not have to use those templated patterns in definition part at all.
But I would strongly advise against using "vector" as the name of your typedef |
because of std::vector?
Last edited on
Shouldn't that definition also be in the header file when using the inclusion model to avoid violating the one definition rule?
EDIT: Actually, it might not have anything to do with the ODR--I might have myself all mixed up again... :P
Last edited on