vector<T> m;
is a private member in a template class.
template<class T>
bool Matrix_lt<T> :: isNotZero(T val) {
return val != 0;
}
is a private function in the same template class.
template<class T>
int Matrix_lt<T> :: calL0Norm() {
int count = count_if(m.begin(), m.end(), isNotZero<T>);//ERROR
}
is a public function in the same template class.
ERROR: expected primary-expression before '>' token. Why??