const sf::Input& is a reference, therefore it must be initialized in the constructor's initializer list.
class MyClass
{
public:
MyClass()
: app(sf::VideoMode(800, 600), "Title")
, input(app.GetInput())
{
}
private:
sf::RenderWindow app;
const sf::Input& input;
};