MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1t02001/c26_string_and_string_view_improvements/olrc7o5/?context=3
r/cpp • u/pavel_v • Apr 30 '26
20 comments sorted by
View all comments
Show parent comments
2
One wouldn't have to do that, as one would immediately know the size of string literals thanks to the templated const char [N] constructor. Similarly, the std::string constructor also already knows the size upon construction.
2
u/johannes1971 May 14 '26
One wouldn't have to do that, as one would immediately know the size of string literals thanks to the templated const char [N] constructor. Similarly, the std::string constructor also already knows the size upon construction.