Const-Qualification of Main's Parameters in C++
- by pt2cv
The C++ standard mandates that all conforming implementations support the following two signatures for main:
int main();
int main(int, char*[]);
In case of the latter signature, would the addition of (top-level) const-ness break any language rules?
For example:
int main(const int argc, char** const argv);
From my understanding, top-level…