#include <iostream>
using namespace std;

template <typename T>
void static_dispatch(const T &callback) {
	cout << "static_dipatch: " << callback() << endl;
}

int main() {
	int x = 1;
	int y = 2;
	
	auto closure = [&] { return x + y; };
	
	static_dispatch(closure);
	
	return 0;
}