I have similar case but more complex. I am trying to call a template function inside a normal function but I can't compile...
#include <iostream>
using namespace std;
template<class T>
void ioo(T& x) { std::cout << x << "\n"; }
template<class T, class ReadFunc>
void f(T&& param, ReadFunc func) {
func(param);
}
int main() {
int x = 1;
std::string y = "something";
f(x, &::ioo);
}