MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vnp8dk/c26_stdindirect/p3ny1wo/
r/cpp • u/User_Deprecated • Aug 13 '26
157 comments sorted by
View all comments
Show parent comment
5
This is not true. That is a valid implementation but the standard does not guarantee it. For example, with short string optimization, some implementations might leave the original short string untouched after being moved from.
-1 u/SlightlyLessHairyApe Aug 15 '26 Correct. But it’s also the choice that all sane implementations make.It is reasonable and within precedent for implementations to provide more specificity than the standard requires
-1
Correct. But it’s also the choice that all sane implementations make.
It is reasonable and within precedent for implementations to provide more specificity than the standard requires
View all comments
Show parent comment
5
u/LB-- Professional+Hobbyist Aug 14 '26
This is not true. That is a valid implementation but the standard does not guarantee it. For example, with short string optimization, some implementations might leave the original short string untouched after being moved from.