This is a simple question, and I am sure that it has been answered before but I cannot seem to find a good answer.
I have a class, Point:
template<class T>
Point{
\\code
}
...and now I want a vector of Points, some of which have T as an integer which have T as a double. I want to write something like
template<class T>
std::vector<Point<T> > points;
But, alas, this doesn't compile with the error "expected primary-expression before 'template'". I haven't been able to fidget with this code to make it work. Also relevant is that points is in the main class, so I can't stick the template declaration outside the function.
If someone could direct me to a solution, I would be much obliged.
Thanks.