It looks like some kind of delegate, it does compile but does not create a working program.
I'm not familiar with this kind of programming, how do I change it so that is works?
Not directed at you at all. I just find https://en.cppreference.com/ to be highly pedantic and more concerned with formalisms of the C++ language specification than it is with helping people understand and use the features.
well it's focused more on the specification (the reference as the name imply) than educating... so indeed may be not the best didactic link I could have posted