I think the codes on SFML is not complete.
The two overloaded get() member functions are generalized using the same principle, that is why they are not listed here. You can refer to the online code base for a complete implementation.
I tried to look at the code sample i downloaded but i still cant find the ResourceHolder class. The book and the online code base is not the same.