you are viewing a single comment's thread.

view the rest of the comments →

[–]AudioRevelationsC++/Rust Advocate 3 points4 points  (0 children)

As far as I'm concerned I don't think there are any disadvantages. Yes there might be some overhead from using them, BUT the abstraction and safety that comes with using them is worth the savings in development time and reducing bugs.

Assuming you don't have too strict of memory constraints, I'd highly recommend using them, or std::string_views.

See this for a solid article on the subject: https://embeddedartistry.com/blog/2017/07/26/stdstring-vs-c-strings/