The motivation of article author was to check how experiencedAn author's claim is that C++ programmer can write a basic class with a pointer as a memberis not appropriate for big software projects because
My primary complaint against C++ is that the language is so complicated, and has enough booby-traps, that average and above-average programmers have a difficult time writing code without serious bugs.
This is the the test he gave to candidates on his job interviews:
There are a lot of problems with memory management because of raw pointers using. And thisBut it was before C++11 was invented. So now C++11 with smart pointers can help us to avoid mentioned problems? This is my version of this class (with smart pointers):