N
none
In a class in some old legacy code I have:
template <class T>
void AddSeeds(const T& points) {
FOR_EACH_CONST(typename T, points, i) m_Seeds.push_back(*i);
}
when I compile I get the error:
error: expected nested-name-specifier before ‘T’
error: expected ‘(’ before ‘T’
error: ‘i’ was not declared in this scope
This very code has worked fine before without specifying a type for 'i'. Any ideas what: expected
nested-name-specifier before ‘T’ might mean in this context?
template <class T>
void AddSeeds(const T& points) {
FOR_EACH_CONST(typename T, points, i) m_Seeds.push_back(*i);
}
when I compile I get the error:
error: expected nested-name-specifier before ‘T’
error: expected ‘(’ before ‘T’
error: ‘i’ was not declared in this scope
This very code has worked fine before without specifying a type for 'i'. Any ideas what: expected
nested-name-specifier before ‘T’ might mean in this context?