#include <iostream>

using namespace std;

template <typename T>
void foo(T&& x) { x.func(); }

int main()
{
	auto bar = &foo<int>;
}