4 ms·
It's very easy to avoid at least the problems you've mentioned by not making copyable objects and not defining bloated operators.
by SamReidHughes 15y ago
It's very easy to avoid at least the problems you've mentioned by not making copyable objects and not defining bloated operators.
- leon_ 15y ago> not defining bloated operators Can you guarantee that for every 3rd party lib you use?
- SamReidHughes 15y agoWho cares about theoretical possibilities? The reality is that hidden object copies and bloated operators are not a real problem.
- dkersten 15y agoThen only use the ones that do guarantee this. You can also make use of C libraries, but still have access to some nice C++ features for your code. Since C++ lets you omit language features until you basically have plain C, you get to choose what level of support you can live with.