MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vnp8dk/c26_stdindirect/p3qd2f0/
r/cpp • u/User_Deprecated • Aug 13 '26
157 comments sorted by
View all comments
6
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 Aug 15 '26 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.
View all comments
6
u/vI--_--Iv Aug 14 '26
Who would've thought that a unique pointer would behave like 1) pointer; 2) unique.
O tempora, o mores!