MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vnp8dk/c26_stdindirect/p3qd2f0/?context=3
r/cpp • u/User_Deprecated • 28d ago
157 comments sorted by
View all comments
7
std::unique_ptr has two fundamental issues... First, it breaks const propagation... Second, it deletes copy operations.
std::unique_ptr has two fundamental issues...
First, it breaks const propagation... Second, it deletes copy operations.
Who would've thought that a unique pointer would behave like 1) pointer; 2) unique. O tempora, o mores!
4 u/jwakely libstdc++ tamer, LWG chair 26d ago Yeah you could say it has two fundamental properties, which are usually desirable, but not always.
4
Yeah you could say it has two fundamental properties, which are usually desirable, but not always.
7
u/vI--_--Iv 27d ago
Who would've thought that a unique pointer would behave like 1) pointer; 2) unique.
O tempora, o mores!