Why isn't main defined `main(std::vector<std::string> args)`?

Viewed 4028

This question is only half tongue-in-cheek. I sometimes dream of a world without naked arrays or c strings.

If you're using c++, shouldn't the preferred definition of main be something like:

int main(std::vector<std::string> args)

?

There are already multiple definitions of main to choose from, why isn't there a version that is in the spirit of C++?

9 Answers
Related