MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1w74nkf/skill_issue/p7suod2/?context=3
r/programminghorror • u/click-to-reveal • Sep 04 '26
63 comments sorted by
View all comments
Show parent comment
-7
you can't take a const& to a temporary object
14 u/JonIsPatented Sep 04 '26 Yes you can. You can bind a const l-value reference to an x-value or a pr-value. Go try it. 6 u/awidesky Sep 05 '26 Another skill issue 1 u/nevemlaci2 Sep 05 '26 yes you can.
14
Yes you can. You can bind a const l-value reference to an x-value or a pr-value. Go try it.
6
Another skill issue
1
yes you can.
View all comments
Show parent comment
-7
u/LeeHide Sep 04 '26
you can't take a const& to a temporary object