4 ms·
if one is using auto, then contemporary C++ is being used, and I think smart pointers are expected to be used, the article is mixing classical and contemporary
by drtgh 3y ago
if one is using auto, then contemporary C++ is being used, and I think smart pointers are expected to be used, the article is mixing classical and contemporary features.
So IMHO, the problem is such features consumption approach, if one is using raw pointers for any reason, all that area and subsequent should use classical structures, and use some kind of interfaces for to connect them to contemporary structures (suboptimal thought?), never mixing, case contrary to debug those things will be epic poetry (oh, the code uses auto, but is taking care of the pointers or no, damn, I have to read all the library for to know).
- jebarker 3y ago> the article is mixing classical and contemporary features As a C++ novice that is practicing to improve this is the number one problem with finding tutorials. It's really hard for me to figure out which features are current best practice and which shouldn't be used together. I can obviously dig in to specific topics to read the history and pros/cons of features, but that's a very slow way to learn.