Pointers to Members in C++(ncona.com)
ncona.com
Pointers to Members in C++
https://ncona.com/2019/11/pointers-to-members-in-cpp/
1 comments
If you are not restricted to C++98 or older, you could pass a lambda to getDimensionSum() and spare you having to use method pointers.