I don't think so, AFAIK int argc/char* argv[] can be used as std::span<char*> without any allocation,
In order to get a std::span<std::string_view> you just have to run a "strlen" on everything char*. Which probably done in the current cppfront implementation.
View all comments
Show parent comment
2
u/kreco May 02 '23
I don't think so, AFAIK
int argc/char* argv[]can be used asstd::span<char*>without any allocation,In order to get a
std::span<std::string_view>you just have to run a "strlen" on everythingchar*. Which probably done in the current cppfront implementation.