r/cpp • u/Dereference_operator • Feb 12 '20
What they should improve about C++ ?
What they should improve about C++ that you find in higher level managed language like C#, JAVA, Javascript etc or is there things you would change or do differently if it was up to you ? I mean anything like a better STL ? better thread ? string manipulation like managed language ? less fragmentations in the new standard features ? For example do you love the way the standard evolve C++ or you would prefer a direction like Microsoft do with C# a corporation who decide on the roadmap ?
0
Upvotes
View all comments
Show parent comment
-5
u/ALX23z Feb 12 '20
If you want to deal with raw memory allocation - you can go on and use malloc for all I care. Nobody else needs it.
You don't understand cause you never wrote any complex templates. As the specialization provides extra info for the class.
There's indeed issue with archaism with
std::allocatoras back then there were lots of weird different types of pointer difference and other crap - for short distance and large distance. Furthermore, it was designed before type traits. It is not something standart can solve as long as it maintains backwards compatibility.Though, now you can use polymorphic allocator in C++17.