//1:
template < typename T, int T::member >
void some_function() {}
//2:
template < class T, int *T::member >
void some_function() {}
//3:
template < typename T, int &T::member >
void some_function() {}
//4:
template < class T, int T::*member >
void some_function() {}
//5:
template < typename T, int T::&member >
void some_function()
{}
Login in to like
Login in to comment