I'm wondering if it is possible to declare main as template function like this:
template<typename T>
int main(int argc, char *argv[]) {
//code here
}
The compiler says the following
error: cannot declare `::main' to be a template
Is there any reference in the standard?