Does wxWidgets use STL, or the standard string class?
No. This is a much-discussed topic that has (many times) ended with the conclusion that it is in wxWidgets’ best interests to avoid use of templates. Not all compilers can handle templates adequately so it would dramatically reduce the number of compilers and platforms that could be supported. It would also be undesirable to make wxWidgets dependent on another large library that may have to be downloaded and installed. In addition, use of templates can lead to executable bloat, which is something wxWidgets is strenuously trying to avoid. The standard C++ string class is not used, again because it is not available to all compilers, and it is not necessarily a very efficient implementation. Also, we retain more flexibility by being able to modify our own string class. Some compatibility with the string class has been built into wxString. There is nothing to stop an application using templates or the string class for its own purposes. With wxWidgets debugging options on, you may find you
Related Questions
- I teach a class which involves information about encryption using standard published textbooks. Do I have a problem if foreign nationals are in my class?
- Im trying to use a standard C++ library class (like cout, cin, or string) but the compiler gives an undeclared identifier error (C2065) on those names. Why?
- How does a live-online class differ from a standard classroom delivery?