Namespaces
Variants
Views
Actions

Talk:cpp/memory/unique ptr

From cppreference.com

82.3.185.97 23:53, 5 April 2016 (PDT)This article has errors. operator= cannot be used without move. which is later showed in the example but the initial explanation is not correct.

the article already says "Note that unique_ptr's assignment operator only accepts rvalues, which are typically generated by std::move. " --Cubbi (talk) 03:24, 6 April 2016 (PDT)

[edit] No discussion on the requirements of the Deleter type

This article really should have an outline of unique_ptr's Deleter customization point. It should explain exactly what members unique_ptr looks for, so that users can more easily implement them.

The information exists, but it's scattered across all of the pages for unique_ptr's members. It'd be a lot easier to figure out how to write a Deleter if it were all in one place.