/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
using namespace std;
int Function() {}
void Procedure() {}
template<class T> T Process(T (*func)()) {
// Do something
return T();
}
int main()
{
int myInt = Process(Function);
Process(Procedure);
return 0;
}