4 ms·
The C++ standard library and std::string implicitly have specific constraints and use cases, but they were imposed by the design process, not by the language.
by blub 16y ago
The C++ standard library and std::string implicitly have specific constraints and use cases, but they were imposed by the design process, not by the language.
C++ has many string types because each string type has its strengths and weaknesses. For instance, QString is a fully-featured and Unicode-aware string written in C++ that I use most of the time.
std::string is good for most things. What are your specific issues with it?
- jdminhbg 16y agoI don't write C++ and have no issue with std::string. I was taking general issue with the OP's general issue with criticizing a std library alongside a language.
- deleted 16y ago[deleted]
- nuxi 16y agoA proper s[n]printf()-like functionality would be more than nice. No ostringstream crap, no boost's format() hacks, just plain sprintf().