Original Post
How can I create a pointer to a template member function? Here is some code to perhaps make myself clearer: Regrettably this code doesn't work, but I hope someone can help me correct my mistake. Or is this simply not possible in c++?
struct S{
template<typename T> void foo(T t){};
//I think this is the root of all my problems
template<typename T> void (S::*fooPtr)(T);
S(){
fooPtr = &S::foo;
}
};