Liste des Groupes | Revenir à cl c |
C++ generates a lot of code, including constructors, destructors, and virtual functions.In C that's five to ten times the code.
While abstractions can also be achieved in C, they have to be implemented manually.
But this is nothing we can't live with, with the befit of disallowing other unwanted C++ features.What's uneeded with the gerated code ?
If you mean code written by other people, then this is about a big "framework".A matrix class isn't a framework. Frameworks are libraries with
Many times, C++ abstraction are incomplete.What's incomplete ?
For instance, "smart pointers" should be called fake pointers.Why ?
C++ std::string does not represent "literals".You can build a string_view from a literal. The length is determined
Them we have .c_str() and we also my have extra unnecessary conversions and allocations.If you need a dynamic string you need a std::sting.
Les messages affichés proviennent d'usenet.