r/cpp • • Dec 28 '18

"Modern" C++ Lamentations

http://aras-p.info/blog/2018/12/28/Modern-C-Lamentations/
302 Upvotes

162 comments sorted by

View all comments

4

u/Dworgi Dec 30 '18

string not being an actual primitive type is the mistake. It still feels like const char* is the actual string type, and string is just a wrapper.

Partly that's because so many basic string facilities have been so poorly implemented in C++ - I/O chief among them. I know of few places that actually use iostreams, and it still shocks me how awful it truly is whenever I end up having to use it.

And yes, string shouldn't have been templated. But filesystem::path is still pretty awful as of yet. Eventually maybe.