2
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 25 Jul 2023
2 points (100.0% liked)
C++
1732 readers
1 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
Use
std::string_view
to sort of get the safety ofstd::string
without copying the contents (just in general make sure the original c string won't getfree
d or overwritten, which won't happen toargv
in your case).Or just
std::string
and yolo, the overhead of copying the contents is negligible in your use case.thank you
If they are just practicing it isn't a problem, C++17 is already 6 years old and the open source community should get onboard imo
I'm not talking about professional projects. OP asked about making a pet project in C++.
Also, a lot of opensource software could jump forward in term of standard required ; I'm not saying that no professional project uses opensource library, just that we should start moving forward if we don't want to get stuck with old versions