Although there are two ways of specifying main()
in a program, most (all?) current implementations of the C++ run-time call the main()
function the same way (they pass the arguments as (int, char *[])
irrespective to how main()
is declared). Your proposal would require the C++ run-time of all implementations to figure out which kind of main()
the program is using, and call the right main()
. If you really want this functionality for yourself, you can always provide an implementation of main(int, char *[])
that converts the arguments into an initializer list like object (such as vector<>
), and then calls a new entry point function of your choice.
The process for submitting a proposal is described at the Standard C++ website. The basic steps are: (1) float the idea on their Usenet group/mailing list; (2) draft a proposal, solicit feedback, and update the proposal accordingly; and (3) repeat the process until the proposal is accepted.