3 ms·
> 'smart pointers' I tends to avoid smart pointers. There are too many variants, supported in different c++ version. Can't reasonably track which one is suppor
by j16sdiz 4y ago
> 'smart pointers'
I tends to avoid smart pointers.
There are too many variants, supported in different c++ version.
Can't reasonably track which one is supported in which compiler
- hoseja 4y agoHuh? It's literally just std::unique_ptr for most uses, available since c++11.
- pjmlp 4y agoAlmost every C++ framework since the mid-90's has some variation of them, and those haven't gone away in existing code.
- gituliar 4y agoAvoiding smart pointers for those reasons is a bad idea. Smart pointers are unified since C++11 standard with support in all modern compilers for various platform. Invest some time to get familiar with them and you will not regret.
- jollybean 4y agoYes, it's a bit my point. They are a messy bandaid. The notion of using them in lieu of 'nothing' is rational - but the application is a mess. We need a clean version of C++ that's not some gigantic new thing.