Vector is not a Template?

vector is from the std namespace, so you must use std:: to specify:

std::vector<sf::Texture> textureList;

Or you can use a using statement:

using std::vector;

vector<sf::Texture> textureList;

Leave a Comment