std::array/std::vector in main function declaration?
Hello,
are there any plans to introduce something like
int main(const int argc, const std::array &argv)
or even
int main(const std::vector &argv)
in C++?
As far as I know, C++ is trying to provide alternatives for unsafe or in general less convenient C features. Wouldn't something like this be the next step?
If not, what are some principal problems with doing that?
One guess would be that this is not an option for a freestanding implementation (or for Kernel/Embedded uses), but other than that?
https://redd.it/8ol1a1
@r_cpp
Hello,
are there any plans to introduce something like
int main(const int argc, const std::array &argv)
or even
int main(const std::vector &argv)
in C++?
As far as I know, C++ is trying to provide alternatives for unsafe or in general less convenient C features. Wouldn't something like this be the next step?
If not, what are some principal problems with doing that?
One guess would be that this is not an option for a freestanding implementation (or for Kernel/Embedded uses), but other than that?
https://redd.it/8ol1a1
@r_cpp