[Solved] C++ Templates – Passing Class member [closed]
It seems you want to pass a non-type template parameter, and more specifically, a pointer-to-member. For what you want, you have to user: template<ObjectType gameclass::* ptr> struct foo // … Note that will allow you to access the member of an object only if you have a pointer to that object. You can have more … Read more