How about using a std::vector instead of an array?
Also, don't forget to check to make sure that the texture loading was success before proceeding.
Here's one possible rewrite:
sf::Texture texture;
if (!texture.loadFromFile("Resources/Sprites/SpriteSheet.png"))
return EXIT_FAILURE;
const sf::Vector2i spriteSize(64, 64);
std::vector<sf::Sprite> sprites(16, sf::Sprite(texture));
for (unsigned int line = 0; line < 2; ++line)
{
for (unsigned int column = 0; column < 8; ++column)
sprites[line * 8 + column].setTextureRect(sf::IntRect(column * spriteSize.x, line * spriteSize.y, spriteSize.x, spriteSize.y));
}
This post is just a suggestion