I realize similar questions have been asked before, but I read a couple of those and still don\'t see where I\'m going wrong. When I simply write my class without separating th
You have to state the template parameter in the definition as well
template int VisitedSet::getSize() { return vec.size(); }
otherwise the compiler cannot match it to the declaration. For example, there could be specializations for some parameter types.