Re:C++ Programming Questions to Ask on Interview (2017)
by geezerjay on Friday October 19, 2018 @03:07PM
(#18259135)
> The design goal was to reduce accidental errors in code, particularly by the incautious and by learners
No, it really isn't. The whole point of a unique pointer is to ensure that the pointer is in fact unique. Thus, std::unique_ptr is specifically designed to disallow any form of copying.
No, it really isn't. The whole point of a unique pointer is to ensure that the pointer is in fact unique. Thus, std::unique_ptr is specifically designed to disallow any form of copying.