Why is there a different string class in every C++ platform out there?

前端 未结 7 2044
北荒
北荒 2020-12-31 08:02

While I like programming in C++, I hate the idea of:
std::basic_string vs QString vs wxString vs .............
Doesn\'t the

相关标签:
7条回答
  • 2020-12-31 08:49

    IMO, std::string isn't old enough to be widespread (Qt and wxWidgets are older than the STL, or at least older than widely available stable and working STLs). Also, std::string is sadly not the best string class there is for everyone, and other frameworks have other needs.

    Note! The paragraph below slightly incorrect, but kept to make sense of comments.

    For instance, C++ STL's is very resource constrained, whereas the Qt string class offer lots of goodies that a committe would never agree on, especially as some want it to be easily implementable on embedded systems and the like.

    0 讨论(0)
提交回复
热议问题