From 2.5.1's documentation:
It only contains static functions (a single mouse is assumed), so it's not meant to be instantiated.
Which means we should never have been doing:
sf::Mouse mouse;
You are right, though. The correct way to do it is simply:
sf::Mouse::getPosition();